chofex-cli 0.1.10 → 0.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -22,3 +22,6 @@ token with `CHOFEX_TOKEN`.
|
|
|
22
22
|
|
|
23
23
|
Use `CHOFEX_API_URL` to override the API URL when running against a hosted or
|
|
24
24
|
local Chofex instance.
|
|
25
|
+
|
|
26
|
+
Registration links use `https://andes.crafter.run` by default. Local or preview
|
|
27
|
+
environments can override that origin with `CHOFEX_PUBLIC_SITE_URL`.
|
package/dist/index.js
CHANGED
|
@@ -30971,6 +30971,7 @@ import { createServer } from "node:http";
|
|
|
30971
30971
|
var oauthIssuer = process.env.CHOFEX_OAUTH_ISSUER ?? "https://close-newt-8265.clerk.accounts.dev";
|
|
30972
30972
|
var config = {
|
|
30973
30973
|
apiUrl: process.env.CHOFEX_API_URL ?? "http://localhost:3000",
|
|
30974
|
+
publicSiteUrl: process.env.CHOFEX_PUBLIC_SITE_URL ?? "https://andes.crafter.run",
|
|
30974
30975
|
oauthClientId: process.env.CHOFEX_OAUTH_CLIENT_ID ?? "1YfuXKgOXkdH094s",
|
|
30975
30976
|
authorizationUrl: `${oauthIssuer}/oauth/authorize`,
|
|
30976
30977
|
tokenUrl: `${oauthIssuer}/oauth/token`,
|
|
@@ -31823,7 +31824,7 @@ var registerCommand = exports_Command.make("register", { input: inputFlag }, exp
|
|
|
31823
31824
|
const options = yield* root;
|
|
31824
31825
|
const operation = exports_Effect.gen(function* () {
|
|
31825
31826
|
const token = exports_Option.getOrUndefined(options.token);
|
|
31826
|
-
const body = yield* applicationInput(exports_Option.getOrUndefined(input),
|
|
31827
|
+
const body = yield* applicationInput(exports_Option.getOrUndefined(input), config.publicSiteUrl);
|
|
31827
31828
|
return yield* register({ apiUrl: options.apiUrl, token }, body);
|
|
31828
31829
|
});
|
|
31829
31830
|
yield* execute(options.output, operation, createdText);
|