create-cloudflare 0.0.0-ee98fd444 → 0.0.0-eef649c82

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.
Files changed (124) hide show
  1. package/dist/cli.js +6171 -7605
  2. package/dist/tsconfig.tsbuildinfo +1 -1
  3. package/package.json +7 -6
  4. package/templates/analog/templates/wrangler.json +5 -0
  5. package/templates/astro/c3.ts +17 -33
  6. package/templates/astro/templates/js/wrangler.json +8 -0
  7. package/templates/astro/templates/ts/worker-configuration.d.ts +4 -0
  8. package/templates/astro/templates/ts/wrangler.json +8 -0
  9. package/templates/common/js/package.json +1 -1
  10. package/templates/common/js/wrangler.json +8 -0
  11. package/templates/common/ts/package.json +1 -1
  12. package/templates/common/ts/wrangler.json +8 -0
  13. package/templates/hello-world/js/package.json +1 -1
  14. package/templates/hello-world/js/wrangler.json +8 -0
  15. package/templates/hello-world/py/package.json +1 -1
  16. package/templates/hello-world/py/wrangler.json +9 -0
  17. package/templates/hello-world/ts/package.json +1 -1
  18. package/templates/hello-world/ts/wrangler.json +8 -0
  19. package/templates/hello-world-durable-object/js/package.json +1 -1
  20. package/templates/hello-world-durable-object/js/wrangler.json +24 -0
  21. package/templates/hello-world-durable-object/ts/package.json +1 -1
  22. package/templates/hello-world-durable-object/ts/src/index.ts +1 -1
  23. package/templates/hello-world-durable-object/ts/wrangler.json +24 -0
  24. package/templates/hono/templates/wrangler.json +8 -0
  25. package/templates/next/README.md +1 -1
  26. package/templates/next/app/js/app/api/hello/route.js +4 -4
  27. package/templates/next/app/ts/app/api/hello/route.ts +4 -5
  28. package/templates/next/c3.ts +4 -4
  29. package/templates/next/wrangler.json +8 -0
  30. package/templates/nuxt/c3.ts +1 -1
  31. package/templates/nuxt/templates/wrangler.json +8 -0
  32. package/templates/openapi/ts/package.json +1 -1
  33. package/templates/openapi/ts/wrangler.json +8 -0
  34. package/templates/pre-existing/js/package.json +1 -1
  35. package/templates/pre-existing/js/wrangler.json +5 -0
  36. package/templates/queues/js/package.json +1 -1
  37. package/templates/queues/js/wrangler.json +21 -0
  38. package/templates/queues/ts/package.json +1 -1
  39. package/templates/queues/ts/wrangler.json +21 -0
  40. package/templates/qwik/templates/wrangler.json +8 -0
  41. package/templates/remix/templates/wrangler.json +5 -0
  42. package/templates/scheduled/js/package.json +1 -1
  43. package/templates/scheduled/js/wrangler.json +13 -0
  44. package/templates/scheduled/ts/package.json +1 -1
  45. package/templates/scheduled/ts/wrangler.json +13 -0
  46. package/templates/solid/c3.ts +1 -1
  47. package/templates/solid/templates/wrangler.json +8 -0
  48. package/templates/svelte/templates/wrangler.json +5 -0
  49. package/templates-experimental/angular/templates/wrangler.json +12 -0
  50. package/templates-experimental/astro/c3.ts +17 -33
  51. package/templates-experimental/astro/templates/js/wrangler.json +15 -0
  52. package/templates-experimental/astro/templates/ts/public/.assetsignore +4 -0
  53. package/templates-experimental/astro/templates/ts/worker-configuration.d.ts +4 -0
  54. package/templates-experimental/astro/templates/ts/wrangler.json +15 -0
  55. package/templates-experimental/docusaurus/templates/wrangler.json +10 -0
  56. package/templates-experimental/gatsby/templates/wrangler.json +10 -0
  57. package/templates-experimental/hello-world-assets-only/templates/wrangler.json +10 -0
  58. package/templates-experimental/hello-world-durable-object-with-assets/js/package.json +1 -1
  59. package/templates-experimental/hello-world-durable-object-with-assets/js/wrangler.json +28 -0
  60. package/templates-experimental/hello-world-durable-object-with-assets/ts/package.json +1 -1
  61. package/templates-experimental/hello-world-durable-object-with-assets/ts/wrangler.json +28 -0
  62. package/templates-experimental/hello-world-with-assets/js/package.json +1 -1
  63. package/templates-experimental/hello-world-with-assets/js/wrangler.json +15 -0
  64. package/templates-experimental/hello-world-with-assets/py/package.json +1 -1
  65. package/templates-experimental/hello-world-with-assets/py/wrangler.json +15 -0
  66. package/templates-experimental/hello-world-with-assets/ts/package.json +1 -1
  67. package/templates-experimental/hello-world-with-assets/ts/wrangler.json +15 -0
  68. package/templates-experimental/hono/templates/wrangler.json +9 -0
  69. package/templates-experimental/next/c3.ts +12 -5
  70. package/templates-experimental/next/templates/.dev.vars +2 -0
  71. package/templates-experimental/next/templates/__dot__gitignore +2 -5
  72. package/templates-experimental/next/templates/cloudflare-env.d.ts +5 -0
  73. package/templates-experimental/next/templates/open-next.config.ts +28 -0
  74. package/templates-experimental/next/templates/wrangler.json +13 -0
  75. package/templates-experimental/nuxt/c3.ts +1 -1
  76. package/templates-experimental/nuxt/templates/wrangler.json +12 -0
  77. package/templates-experimental/qwik/templates/wrangler.json +15 -0
  78. package/templates-experimental/solid/c3.ts +1 -1
  79. package/templates-experimental/solid/templates/wrangler.json +15 -0
  80. package/templates-experimental/svelte/templates/wrangler.json +12 -0
  81. package/templates-experimental/vue/templates/wrangler.json +10 -0
  82. package/templates/analog/templates/wrangler.toml +0 -85
  83. package/templates/astro/templates/wrangler.toml +0 -86
  84. package/templates/common/js/wrangler.toml +0 -113
  85. package/templates/common/ts/wrangler.toml +0 -113
  86. package/templates/hello-world/js/wrangler.toml +0 -114
  87. package/templates/hello-world/py/wrangler.toml +0 -114
  88. package/templates/hello-world/ts/wrangler.toml +0 -114
  89. package/templates/hello-world-durable-object/js/wrangler.toml +0 -113
  90. package/templates/hello-world-durable-object/ts/wrangler.toml +0 -113
  91. package/templates/hono/templates/wrangler.toml +0 -113
  92. package/templates/next/wrangler.toml +0 -86
  93. package/templates/nuxt/templates/wrangler.toml +0 -86
  94. package/templates/openapi/ts/wrangler.toml +0 -113
  95. package/templates/pre-existing/js/wrangler.toml +0 -4
  96. package/templates/queues/js/wrangler.toml +0 -118
  97. package/templates/queues/ts/wrangler.toml +0 -118
  98. package/templates/qwik/templates/wrangler.toml +0 -86
  99. package/templates/remix/templates/wrangler.toml +0 -85
  100. package/templates/scheduled/js/wrangler.toml +0 -119
  101. package/templates/scheduled/ts/wrangler.toml +0 -119
  102. package/templates/solid/templates/wrangler.toml +0 -84
  103. package/templates/svelte/templates/wrangler.toml +0 -85
  104. package/templates-experimental/angular/templates/wrangler.toml +0 -11
  105. package/templates-experimental/astro/templates/wrangler.toml +0 -12
  106. package/templates-experimental/docusaurus/templates/wrangler.toml +0 -10
  107. package/templates-experimental/gatsby/templates/wrangler.toml +0 -10
  108. package/templates-experimental/hello-world-assets-only/templates/wrangler.toml +0 -10
  109. package/templates-experimental/hello-world-durable-object-with-assets/js/wrangler.toml +0 -24
  110. package/templates-experimental/hello-world-durable-object-with-assets/ts/wrangler.toml +0 -24
  111. package/templates-experimental/hello-world-with-assets/js/wrangler.toml +0 -12
  112. package/templates-experimental/hello-world-with-assets/py/wrangler.toml +0 -12
  113. package/templates-experimental/hello-world-with-assets/ts/wrangler.toml +0 -12
  114. package/templates-experimental/hono/templates/wrangler.toml +0 -5
  115. package/templates-experimental/next/templates/env.d.ts +0 -5
  116. package/templates-experimental/next/templates/wrangler.toml +0 -12
  117. package/templates-experimental/nuxt/templates/wrangler.toml +0 -11
  118. package/templates-experimental/qwik/templates/wrangler.toml +0 -12
  119. package/templates-experimental/solid/templates/wrangler.toml +0 -12
  120. package/templates-experimental/svelte/templates/wrangler.toml +0 -11
  121. package/templates-experimental/vue/templates/wrangler.toml +0 -10
  122. /package/templates/astro/{snippets/runtimeDeclaration.ts → templates/ts/src/env.d.ts} +0 -0
  123. /package/templates-experimental/astro/templates/{public → js/public}/.assetsignore +0 -0
  124. /package/templates-experimental/astro/{snippets/runtimeDeclaration.ts → templates/ts/src/env.d.ts} +0 -0
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "<TBD>",
3
+ "main": "./dist/server/server.mjs",
4
+ "compatibility_date": "<TBD>",
5
+ "assets": {
6
+ "binding": "ASSETS",
7
+ "directory": "./dist/browser"
8
+ },
9
+ "observability": {
10
+ "enabled": true
11
+ }
12
+ }
@@ -1,7 +1,7 @@
1
1
  import { logRaw, updateStatus } from "@cloudflare/cli";
2
2
  import { blue, brandColor, dim } from "@cloudflare/cli/colors";
3
3
  import { runFrameworkGenerator } from "frameworks/index";
4
- import { loadTemplateSnippets, transformFile } from "helpers/codemod";
4
+ import { transformFile } from "helpers/codemod";
5
5
  import { runCommand } from "helpers/command";
6
6
  import { usesTypescript } from "helpers/files";
7
7
  import { detectPackageManager } from "helpers/packageManagers";
@@ -17,7 +17,7 @@ const generate = async (ctx: C3Context) => {
17
17
  logRaw(""); // newline
18
18
  };
19
19
 
20
- const configure = async (ctx: C3Context) => {
20
+ const configure = async () => {
21
21
  await runCommand([npx, "astro", "add", "cloudflare", "-y"], {
22
22
  silent: true,
23
23
  startText: "Installing adapter",
@@ -27,7 +27,6 @@ const configure = async (ctx: C3Context) => {
27
27
  });
28
28
 
29
29
  updateAstroConfig();
30
- updateEnvDeclaration(ctx);
31
30
  };
32
31
 
33
32
  const updateAstroConfig = () => {
@@ -59,35 +58,6 @@ const updateAstroConfig = () => {
59
58
  });
60
59
  };
61
60
 
62
- const updateEnvDeclaration = (ctx: C3Context) => {
63
- if (!usesTypescript(ctx)) {
64
- return;
65
- }
66
-
67
- const filePath = "src/env.d.ts";
68
-
69
- updateStatus(`Adding type declarations in ${blue(filePath)}`);
70
-
71
- transformFile(filePath, {
72
- visitProgram: function (n) {
73
- const snippets = loadTemplateSnippets(ctx);
74
- const patch = snippets.runtimeDeclarationTs;
75
- const b = recast.types.builders;
76
-
77
- // Preserve comments with the new body
78
- const comments = n.get("comments").value;
79
- n.node.comments = comments.map((c: recast.types.namedTypes.CommentLine) =>
80
- b.commentLine(c.value),
81
- );
82
-
83
- // Add the patch
84
- n.get("body").push(...patch);
85
-
86
- return false;
87
- },
88
- });
89
- };
90
-
91
61
  const config: TemplateConfig = {
92
62
  configVersion: 1,
93
63
  id: "astro",
@@ -95,7 +65,21 @@ const config: TemplateConfig = {
95
65
  platform: "workers",
96
66
  displayName: "Astro",
97
67
  copyFiles: {
98
- path: "./templates",
68
+ async selectVariant(ctx) {
69
+ // Note: this `selectVariant` function should not be needed
70
+ // this is just a quick workaround until
71
+ // https://github.com/cloudflare/workers-sdk/issues/7495
72
+ // is resolved
73
+ return usesTypescript(ctx) ? "ts" : "js";
74
+ },
75
+ variants: {
76
+ js: {
77
+ path: "./templates/js",
78
+ },
79
+ ts: {
80
+ path: "./templates/ts",
81
+ },
82
+ },
99
83
  },
100
84
  devScript: "dev",
101
85
  deployScript: "deploy",
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "<TBD>",
3
+ "main": "./dist/_worker.js/index.js",
4
+ "compatibility_date": "<TBD>",
5
+ "compatibility_flags": [
6
+ "nodejs_compat"
7
+ ],
8
+ "assets": {
9
+ "binding": "ASSETS",
10
+ "directory": "./dist"
11
+ },
12
+ "observability": {
13
+ "enabled": true
14
+ }
15
+ }
@@ -0,0 +1,4 @@
1
+ _worker.js
2
+ _routes.json
3
+ _headers
4
+ _redirects
@@ -0,0 +1,4 @@
1
+ // Generated by Wrangler
2
+ // After adding bindings to `wrangler.toml`, regenerate this interface via `npm run cf-typegen`
3
+ interface Env {
4
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "<TBD>",
3
+ "main": "./dist/_worker.js/index.js",
4
+ "compatibility_date": "<TBD>",
5
+ "compatibility_flags": [
6
+ "nodejs_compat"
7
+ ],
8
+ "assets": {
9
+ "binding": "ASSETS",
10
+ "directory": "./dist"
11
+ },
12
+ "observability": {
13
+ "enabled": true
14
+ }
15
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "<TBD>",
3
+ "compatibility_date": "<TBD>",
4
+ "assets": {
5
+ "directory": "./build"
6
+ },
7
+ "observability": {
8
+ "enabled": true
9
+ }
10
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "<TBD>",
3
+ "compatibility_date": "<TBD>",
4
+ "assets": {
5
+ "directory": "./public"
6
+ },
7
+ "observability": {
8
+ "enabled": true
9
+ }
10
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "<TBD>",
3
+ "compatibility_date": "<TBD>",
4
+ "assets": {
5
+ "directory": "./public"
6
+ },
7
+ "observability": {
8
+ "enabled": true
9
+ }
10
+ }
@@ -8,6 +8,6 @@
8
8
  "start": "wrangler dev"
9
9
  },
10
10
  "devDependencies": {
11
- "wrangler": "^3.60.3"
11
+ "wrangler": "^3.101.0"
12
12
  }
13
13
  }
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "<TBD>",
3
+ "main": "src/index.js",
4
+ "compatibility_date": "<TBD>",
5
+ "assets": {
6
+ "binding": "ASSETS",
7
+ "directory": "./public"
8
+ },
9
+ "durable_objects": {
10
+ "bindings": [
11
+ {
12
+ "class_name": "MyDurableObject",
13
+ "name": "MY_DURABLE_OBJECT"
14
+ }
15
+ ]
16
+ },
17
+ "migrations": [
18
+ {
19
+ "new_classes": [
20
+ "MyDurableObject"
21
+ ],
22
+ "tag": "v1"
23
+ }
24
+ ],
25
+ "observability": {
26
+ "enabled": true
27
+ }
28
+ }
@@ -10,6 +10,6 @@
10
10
  },
11
11
  "devDependencies": {
12
12
  "typescript": "^5.5.2",
13
- "wrangler": "^3.60.3"
13
+ "wrangler": "^3.101.0"
14
14
  }
15
15
  }
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "<TBD>",
3
+ "main": "src/index.ts",
4
+ "compatibility_date": "<TBD>",
5
+ "migrations": [
6
+ {
7
+ "new_classes": [
8
+ "MyDurableObject"
9
+ ],
10
+ "tag": "v1"
11
+ }
12
+ ],
13
+ "assets": {
14
+ "binding": "ASSETS",
15
+ "directory": "./public"
16
+ },
17
+ "durable_objects": {
18
+ "bindings": [
19
+ {
20
+ "class_name": "MyDurableObject",
21
+ "name": "MY_DURABLE_OBJECT"
22
+ }
23
+ ]
24
+ },
25
+ "observability": {
26
+ "enabled": true
27
+ }
28
+ }
@@ -10,7 +10,7 @@
10
10
  },
11
11
  "devDependencies": {
12
12
  "@cloudflare/vitest-pool-workers": "^0.5.2",
13
- "wrangler": "^3.60.3",
13
+ "wrangler": "^3.101.0",
14
14
  "vitest": "2.1.8"
15
15
  }
16
16
  }
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "<TBD>",
3
+ "main": "src/index.js",
4
+ "compatibility_date": "<TBD>",
5
+ "compatibility_flags": [
6
+ "nodejs_compat"
7
+ ],
8
+ "assets": {
9
+ "binding": "ASSETS",
10
+ "directory": "./public"
11
+ },
12
+ "observability": {
13
+ "enabled": true
14
+ }
15
+ }
@@ -8,6 +8,6 @@
8
8
  "start": "wrangler dev"
9
9
  },
10
10
  "devDependencies": {
11
- "wrangler": "^3.60.3"
11
+ "wrangler": "^3.101.0"
12
12
  }
13
13
  }
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "<TBD>",
3
+ "main": "src/entry.py",
4
+ "compatibility_date": "<TBD>",
5
+ "compatibility_flags": [
6
+ "python_workers"
7
+ ],
8
+ "assets": {
9
+ "binding": "ASSETS",
10
+ "directory": "./public"
11
+ },
12
+ "observability": {
13
+ "enabled": true
14
+ }
15
+ }
@@ -13,6 +13,6 @@
13
13
  "@cloudflare/vitest-pool-workers": "^0.5.2",
14
14
  "typescript": "^5.5.2",
15
15
  "vitest": "2.1.8",
16
- "wrangler": "^3.60.3"
16
+ "wrangler": "^3.101.0"
17
17
  }
18
18
  }
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "<TBD>",
3
+ "main": "src/index.ts",
4
+ "compatibility_date": "<TBD>",
5
+ "compatibility_flags": [
6
+ "nodejs_compat"
7
+ ],
8
+ "assets": {
9
+ "binding": "ASSETS",
10
+ "directory": "./public"
11
+ },
12
+ "observability": {
13
+ "enabled": true
14
+ }
15
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "<TBD>",
3
+ "main": "src/index.ts",
4
+ "compatibility_date": "<TBD>",
5
+ "assets": {
6
+ "binding": "ASSETS",
7
+ "directory": "./public"
8
+ }
9
+ }
@@ -18,7 +18,10 @@ const generate = async (ctx: C3Context) => {
18
18
  };
19
19
 
20
20
  const configure = async () => {
21
- const packages = ["@opennextjs/cloudflare", "@cloudflare/workers-types"];
21
+ const packages = [
22
+ "@opennextjs/cloudflare@0.3.x",
23
+ "@cloudflare/workers-types",
24
+ ];
22
25
  await installPackages(packages, {
23
26
  dev: true,
24
27
  startText: "Adding the Cloudflare adapter",
@@ -30,8 +33,12 @@ export default {
30
33
  configVersion: 1,
31
34
  id: "next",
32
35
  frameworkCli: "create-next-app",
36
+ // TODO: here we need to specify a version of create-next-app which is different from the
37
+ // standard one used in the stable Next.js template, that's because our open-next adapter
38
+ // is not yet fully ready for Next.js 15, once it is we should remove the following
39
+ frameworkCliPinnedVersion: "^14.2.23",
33
40
  platform: "workers",
34
- displayName: "Next (using Node.js compat + Workers Assets)",
41
+ displayName: "Next.js (using Node.js compat + Workers Assets)",
35
42
  path: "templates-experimental/next",
36
43
  copyFiles: {
37
44
  path: "./templates",
@@ -40,9 +47,9 @@ export default {
40
47
  configure,
41
48
  transformPackageJson: async () => ({
42
49
  scripts: {
43
- deploy: `cloudflare && wrangler deploy`,
44
- preview: `cloudflare && wrangler dev`,
45
- "cf-typegen": `wrangler types --env-interface CloudflareEnv env.d.ts`,
50
+ deploy: `opennextjs-cloudflare && wrangler deploy`,
51
+ preview: `opennextjs-cloudflare && wrangler dev`,
52
+ "cf-typegen": `wrangler types --env-interface CloudflareEnv cloudflare-env.d.ts`,
46
53
  },
47
54
  }),
48
55
  devScript: "dev",
@@ -0,0 +1,2 @@
1
+ # Load .env.development* files when running `wrangler dev`
2
+ NEXTJS_ENV=development
@@ -35,8 +35,5 @@ yarn-error.log*
35
35
  *.tsbuildinfo
36
36
  next-env.d.ts
37
37
 
38
-
39
- # Cloudflare related
40
- /.save.next
41
- /.worker-next
42
- /.wrangler
38
+ # OpenNext
39
+ /.open-next
@@ -0,0 +1,5 @@
1
+ // Generated by Wrangler
2
+ // by running `wrangler types --env-interface CloudflareEnv cloudflare-env.d.ts`
3
+
4
+ interface CloudflareEnv {
5
+ }
@@ -0,0 +1,28 @@
1
+ import cache from "@opennextjs/cloudflare/kvCache";
2
+
3
+ const config = {
4
+ default: {
5
+ override: {
6
+ wrapper: "cloudflare-node",
7
+ converter: "edge",
8
+ incrementalCache: async () => cache,
9
+ tagCache: "dummy",
10
+ queue: "dummy",
11
+ },
12
+ },
13
+
14
+ middleware: {
15
+ external: true,
16
+ override: {
17
+ wrapper: "cloudflare-edge",
18
+ converter: "edge",
19
+ proxyExternalRequest: "fetch",
20
+ },
21
+ },
22
+
23
+ dangerous: {
24
+ enableCacheInterception: false,
25
+ },
26
+ };
27
+
28
+ export default config;
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "<app-name>",
3
+ "main": ".open-next/worker.js",
4
+ "compatibility_date": "2024-09-26",
5
+ "compatibility_flags": [
6
+ "nodejs_compat"
7
+ ],
8
+ "minify": true,
9
+ "assets": {
10
+ "binding": "ASSETS",
11
+ "directory": ".open-next/assets"
12
+ }
13
+ }
@@ -24,7 +24,7 @@ const generate = async (ctx: C3Context) => {
24
24
  gitFlag,
25
25
  ]);
26
26
 
27
- writeFile("./.node-version", "17");
27
+ writeFile("./.node-version", "18");
28
28
 
29
29
  logRaw(""); // newline
30
30
  };
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "<TBD>",
3
+ "main": "./.output/server/index.mjs",
4
+ "compatibility_date": "<TBD>",
5
+ "assets": {
6
+ "binding": "ASSETS",
7
+ "directory": "./.output/public/"
8
+ },
9
+ "observability": {
10
+ "enabled": true
11
+ }
12
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "<TBD>",
3
+ "main": "./dist/_worker.js",
4
+ "compatibility_date": "<TBD>",
5
+ "compatibility_flags": [
6
+ "nodejs_compat"
7
+ ],
8
+ "assets": {
9
+ "binding": "ASSET",
10
+ "directory": "./dist"
11
+ },
12
+ "observability": {
13
+ "enabled": true
14
+ }
15
+ }
@@ -72,7 +72,7 @@ const config: TemplateConfig = {
72
72
  configVersion: 1,
73
73
  id: "solid",
74
74
  frameworkCli: "create-solid",
75
- displayName: "Solid",
75
+ displayName: "SolidStart",
76
76
  platform: "workers",
77
77
  copyFiles: {
78
78
  path: "./templates",
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "<TBD>",
3
+ "main": "./.output/server/index.mjs",
4
+ "compatibility_date": "<TBD>",
5
+ "compatibility_flags": [
6
+ "nodejs_compat"
7
+ ],
8
+ "assets": {
9
+ "binding": "ASSETS",
10
+ "directory": "./.output/public"
11
+ },
12
+ "observability": {
13
+ "enabled": true
14
+ }
15
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "<TBD>",
3
+ "main": ".svelte-kit/cloudflare/_worker.js",
4
+ "compatibility_date": "<TBD>",
5
+ "assets": {
6
+ "binding": "ASSETS",
7
+ "directory": ".svelte-kit/cloudflare"
8
+ },
9
+ "observability": {
10
+ "enabled": true
11
+ }
12
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "<TBD>",
3
+ "compatibility_date": "<TBD>",
4
+ "assets": {
5
+ "directory": "./dist"
6
+ },
7
+ "observability": {
8
+ "enabled": true
9
+ }
10
+ }
@@ -1,85 +0,0 @@
1
- #:schema node_modules/wrangler/config-schema.json
2
- name = "<TBD>"
3
- compatibility_date = "<TBD>"
4
- pages_build_output_dir = "./dist/analog/public"
5
-
6
- # Automatically place your workloads in an optimal location to minimize latency.
7
- # If you are running back-end logic in a Pages Function, running it closer to your back-end infrastructure
8
- # rather than the end user may result in better performance.
9
- # Docs: https://developers.cloudflare.com/pages/functions/smart-placement/#smart-placement
10
- # [placement]
11
- # mode = "smart"
12
-
13
- # Variable bindings. These are arbitrary, plaintext strings (similar to environment variables)
14
- # Note: Use secrets to store sensitive data.
15
- # Docs:
16
- # - https://developers.cloudflare.com/pages/functions/bindings/#environment-variables
17
- # - https://developers.cloudflare.com/pages/functions/bindings/#secrets
18
- # [vars]
19
- # MY_VARIABLE = "production_value"
20
-
21
- # Bind the Workers AI model catalog. Run machine learning models, powered by serverless GPUs, on Cloudflare’s global network
22
- # Docs: https://developers.cloudflare.com/pages/functions/bindings/#workers-ai
23
- # [ai]
24
- # binding = "AI"
25
-
26
- # Bind a D1 database. D1 is Cloudflare’s native serverless SQL database.
27
- # Docs: https://developers.cloudflare.com/pages/functions/bindings/#d1-databases
28
- # [[d1_databases]]
29
- # binding = "MY_DB"
30
- # database_name = "my-database"
31
- # database_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
32
-
33
- # Bind a Durable Object. Durable objects are a scale-to-zero compute primitive based on the actor model.
34
- # Durable Objects can live for as long as needed. Use these when you need a long-running "server", such as in realtime apps.
35
- # Docs: https://developers.cloudflare.com/workers/runtime-apis/durable-objects
36
- # [[durable_objects.bindings]]
37
- # name = "MY_DURABLE_OBJECT"
38
- # class_name = "MyDurableObject"
39
- # script_name = 'my-durable-object'
40
-
41
- # Bind a KV Namespace. Use KV as persistent storage for small key-value pairs.
42
- # Docs: https://developers.cloudflare.com/pages/functions/bindings/#kv-namespaces
43
- # [[kv_namespaces]]
44
- # binding = "MY_KV_NAMESPACE"
45
- # id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
46
-
47
- # Bind a Queue producer. Use this binding to schedule an arbitrary task that may be processed later by a Queue consumer.
48
- # Docs: https://developers.cloudflare.com/pages/functions/bindings/#queue-producers
49
- # [[queues.producers]]
50
- # binding = "MY_QUEUE"
51
- # queue = "my-queue"
52
-
53
- # Bind an R2 Bucket. Use R2 to store arbitrarily large blobs of data, such as files.
54
- # Docs: https://developers.cloudflare.com/pages/functions/bindings/#r2-buckets
55
- # [[r2_buckets]]
56
- # binding = "MY_BUCKET"
57
- # bucket_name = "my-bucket"
58
-
59
- # Bind another Worker service. Use this binding to call another Worker without network overhead.
60
- # Docs: https://developers.cloudflare.com/pages/functions/bindings/#service-bindings
61
- # [[services]]
62
- # binding = "MY_SERVICE"
63
- # service = "my-service"
64
-
65
- # To use different bindings for preview and production environments, follow the examples below.
66
- # When using environment-specific overrides for bindings, ALL bindings must be specified on a per-environment basis.
67
- # Docs: https://developers.cloudflare.com/pages/functions/wrangler-configuration#environment-specific-overrides
68
-
69
- ######## PREVIEW environment config ########
70
-
71
- # [env.preview.vars]
72
- # API_KEY = "xyz789"
73
-
74
- # [[env.preview.kv_namespaces]]
75
- # binding = "MY_KV_NAMESPACE"
76
- # id = "<PREVIEW_NAMESPACE_ID>"
77
-
78
- ######## PRODUCTION environment config ########
79
-
80
- # [env.production.vars]
81
- # API_KEY = "abc123"
82
-
83
- # [[env.production.kv_namespaces]]
84
- # binding = "MY_KV_NAMESPACE"
85
- # id = "<PRODUCTION_NAMESPACE_ID>"