@alumbwe/anvil 1.0.10 → 1.0.13
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 +4 -3
- package/dist/bundled.js +13 -9
- package/dist/bundled.js.map +3 -3
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -14,9 +14,10 @@ anvil
|
|
|
14
14
|
Anvil runs its bundled application with [Bun](https://bun.sh). Install Bun
|
|
15
15
|
before running the command.
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
Publishing loads `.env` / `.env.local` and embeds every `NEXT_PUBLIC_*` value
|
|
18
|
+
into the npm bundle. These are client-safe settings such as the application
|
|
19
|
+
URL, telemetry endpoint, and public Stripe key. API keys, tokens, and every
|
|
20
|
+
other private environment value stay out of the public package.
|
|
20
21
|
|
|
21
22
|
## Development
|
|
22
23
|
|
package/dist/bundled.js
CHANGED
|
@@ -394,17 +394,17 @@ var init_env_schema = __esm(() => {
|
|
|
394
394
|
});
|
|
395
395
|
clientEnvVars = clientEnvSchema.keyof().options;
|
|
396
396
|
clientProcessEnv = {
|
|
397
|
-
NEXT_PUBLIC_CB_ENVIRONMENT:
|
|
398
|
-
NEXT_PUBLIC_ANVIL_APP_URL:
|
|
397
|
+
NEXT_PUBLIC_CB_ENVIRONMENT: "dev",
|
|
398
|
+
NEXT_PUBLIC_ANVIL_APP_URL: "https://codebuff.com",
|
|
399
399
|
NEXT_PUBLIC_FREEBUFF_APP_URL: process.env.NEXT_PUBLIC_FREEBUFF_APP_URL,
|
|
400
|
-
NEXT_PUBLIC_SUPPORT_EMAIL:
|
|
401
|
-
NEXT_PUBLIC_POSTHOG_API_KEY:
|
|
402
|
-
NEXT_PUBLIC_POSTHOG_HOST_URL:
|
|
400
|
+
NEXT_PUBLIC_SUPPORT_EMAIL: "support@codebuff.com",
|
|
401
|
+
NEXT_PUBLIC_POSTHOG_API_KEY: "phc_placeholder",
|
|
402
|
+
NEXT_PUBLIC_POSTHOG_HOST_URL: "https://posthog.codebuff.test",
|
|
403
403
|
NEXT_PUBLIC_GRAVITY_PIXEL_ID: process.env.NEXT_PUBLIC_GRAVITY_PIXEL_ID,
|
|
404
|
-
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY:
|
|
405
|
-
NEXT_PUBLIC_STRIPE_CUSTOMER_PORTAL:
|
|
404
|
+
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY: "pk_test_placeholder",
|
|
405
|
+
NEXT_PUBLIC_STRIPE_CUSTOMER_PORTAL: "https://stripe.codebuff.test",
|
|
406
406
|
NEXT_PUBLIC_GOOGLE_SITE_VERIFICATION_ID: process.env.NEXT_PUBLIC_GOOGLE_SITE_VERIFICATION_ID,
|
|
407
|
-
NEXT_PUBLIC_WEB_PORT:
|
|
407
|
+
NEXT_PUBLIC_WEB_PORT: "3000",
|
|
408
408
|
NEXT_PUBLIC_TURNSTILE_SITE_KEY: process.env.NEXT_PUBLIC_TURNSTILE_SITE_KEY,
|
|
409
409
|
NEXT_PUBLIC_RECAPTCHA_V2_SITE_KEY: process.env.NEXT_PUBLIC_RECAPTCHA_V2_SITE_KEY,
|
|
410
410
|
NEXT_PUBLIC_RECAPTCHA_V3_SITE_KEY: process.env.NEXT_PUBLIC_RECAPTCHA_V3_SITE_KEY,
|
|
@@ -123315,6 +123315,10 @@ async function main() {
|
|
|
123315
123315
|
const [currentProjectRoot, setCurrentProjectRoot] = React60.useState(projectRoot2);
|
|
123316
123316
|
const [showProjectPickerScreen, setShowProjectPickerScreen] = React60.useState(showProjectPicker);
|
|
123317
123317
|
React60.useEffect(() => {
|
|
123318
|
+
if (!IS_FREEBUFF) {
|
|
123319
|
+
setRequireAuth(false);
|
|
123320
|
+
return;
|
|
123321
|
+
}
|
|
123318
123322
|
const apiKey = getAuthTokenDetails().token ?? "";
|
|
123319
123323
|
if (!apiKey) {
|
|
123320
123324
|
setRequireAuth(true);
|
|
@@ -123435,5 +123439,5 @@ if (isTerminalCommandBrokerInvocation(process.argv)) {
|
|
|
123435
123439
|
await Promise.resolve().then(() => (init_src2(), exports_src));
|
|
123436
123440
|
}
|
|
123437
123441
|
|
|
123438
|
-
//# debugId=
|
|
123442
|
+
//# debugId=E87372B0D79FD42764756E2164756E21
|
|
123439
123443
|
//# sourceMappingURL=bundled.js.map
|