@lunora/cli 1.0.0-alpha.6 → 1.0.0-alpha.7
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.
|
@@ -489,7 +489,13 @@ const WRANGLER = `{
|
|
|
489
489
|
"observability": { "enabled": true, "head_sampling_rate": 1 },
|
|
490
490
|
}
|
|
491
491
|
`;
|
|
492
|
-
const GITIGNORE_ADDITIONS = [".wrangler", ".lunora/", ".lunora-cache", "lunora/_generated"];
|
|
492
|
+
const GITIGNORE_ADDITIONS = [".wrangler", ".env", ".env.*", "!.env.example", ".lunora/", ".lunora-cache", "lunora/_generated"];
|
|
493
|
+
const ENV_EXAMPLE = `# Lunora endpoint for the browser client.
|
|
494
|
+
# Vite statically replaces \`import.meta.env.VITE_LUNORA_URL\` at \`vite dev\` / build.
|
|
495
|
+
# Leave it unset to use the page origin; set it to point at a deployed Worker:
|
|
496
|
+
#
|
|
497
|
+
# VITE_LUNORA_URL=https://my-app.example.workers.dev
|
|
498
|
+
`;
|
|
493
499
|
const COMMON_DEV_DEPENDENCIES = {
|
|
494
500
|
"@cloudflare/workers-types": "^4.20260611.1",
|
|
495
501
|
wrangler: "^4.100.0"
|
|
@@ -558,6 +564,7 @@ const applyLunoraOverlay = (options) => {
|
|
|
558
564
|
writeFile(target, join$1("lunora", "messages.ts"), LUNORA_MESSAGES, written);
|
|
559
565
|
writeFile(target, join$1("src", "server.ts"), SERVER_ENTRY, written);
|
|
560
566
|
writeFile(target, "wrangler.jsonc", WRANGLER.replaceAll("__NAME__", name), written);
|
|
567
|
+
writeFile(target, ".env.example", ENV_EXAMPLE, written);
|
|
561
568
|
for (const file of adapter.files) {
|
|
562
569
|
writeFile(target, file.path, file.contents, written);
|
|
563
570
|
}
|