create-cloudflare 0.0.0-62d5471ea → 0.0.0-62df08af3

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 (95) hide show
  1. package/dist/cli.js +934 -855
  2. package/dist/tsconfig.tsbuildinfo +1 -1
  3. package/package.json +5 -5
  4. package/templates/angular/pages/c3.ts +1 -0
  5. package/templates/astro/pages/c3.ts +1 -0
  6. package/templates/astro/workers/templates/ts/wrangler.jsonc +1 -1
  7. package/templates/common/c3.ts +5 -1
  8. package/templates/docusaurus/pages/c3.ts +1 -0
  9. package/templates/gatsby/pages/c3.ts +1 -0
  10. package/templates/hello-world/ts/test/env.d.ts +3 -0
  11. package/templates/hello-world/ts/worker-configuration.d.ts +6 -2
  12. package/templates/hello-world-durable-object/c3.ts +4 -1
  13. package/templates/hello-world-durable-object/ts/worker-configuration.d.ts +6 -4
  14. package/templates/hello-world-durable-object-with-assets/js/src/index.js +11 -10
  15. package/templates/hello-world-durable-object-with-assets/js/wrangler.jsonc +2 -2
  16. package/templates/hello-world-durable-object-with-assets/ts/src/index.ts +10 -9
  17. package/templates/hello-world-durable-object-with-assets/ts/worker-configuration.d.ts +7 -4
  18. package/templates/hello-world-durable-object-with-assets/ts/wrangler.jsonc +1 -1
  19. package/templates/hello-world-with-assets/c3.ts +4 -1
  20. package/templates/hello-world-with-assets/js/public/index.html +2 -2
  21. package/templates/hello-world-with-assets/py/public/index.html +2 -2
  22. package/templates/hello-world-with-assets/ts/public/index.html +2 -2
  23. package/templates/hello-world-with-assets/ts/test/env.d.ts +3 -0
  24. package/templates/hello-world-with-assets/ts/test/tsconfig.json +1 -1
  25. package/templates/hello-world-with-assets/ts/worker-configuration.d.ts +6 -3
  26. package/templates/hono/c3.ts +5 -66
  27. package/templates/hono/pages/c3.ts +44 -0
  28. package/templates/hono/pages/templates/src/index.tsx +12 -0
  29. package/templates/hono/{templates → pages/templates}/wrangler.jsonc +1 -1
  30. package/{templates-experimental/hono → templates/hono/workers}/c3.ts +2 -4
  31. package/templates/next/c3.ts +7 -221
  32. package/templates/next/pages/c3.ts +225 -0
  33. package/{templates-experimental/next → templates/next/workers}/c3.ts +6 -7
  34. package/templates/next/workers/templates/open-next.config.ts +6 -0
  35. package/{templates-experimental/next → templates/next/workers}/templates/wrangler.jsonc +1 -1
  36. package/templates/nuxt/pages/c3.ts +2 -0
  37. package/templates/nuxt/workers/c3.ts +1 -0
  38. package/templates/openapi/c3.ts +5 -1
  39. package/templates/pre-existing/c3.ts +5 -1
  40. package/templates/queues/c3.ts +5 -1
  41. package/templates/qwik/c3.ts +5 -144
  42. package/templates/qwik/pages/c3.ts +150 -0
  43. package/{templates-experimental/qwik → templates/qwik/workers}/c3.ts +2 -2
  44. package/templates/react/pages/c3.ts +1 -0
  45. package/templates/react/workers/js/src/App.jsx +1 -1
  46. package/templates/react/workers/js/{api → worker}/index.js +1 -1
  47. package/templates/react/workers/js/wrangler.jsonc +2 -2
  48. package/templates/react/workers/ts/src/App.tsx +1 -1
  49. package/templates/react/workers/ts/tsconfig.worker.json +1 -1
  50. package/templates/react/workers/ts/{api → worker}/index.ts +2 -3
  51. package/templates/react/workers/ts/wrangler.jsonc +2 -2
  52. package/templates/react-router/c3.ts +53 -0
  53. package/templates/react-router/templates/worker-configuration.d.ts +8 -0
  54. package/templates/remix/c3.ts +1 -0
  55. package/templates/remix/pages/c3.ts +1 -0
  56. package/templates/scheduled/c3.ts +5 -1
  57. package/templates/scheduled/ts/src/index.ts +7 -0
  58. package/templates/svelte/c3.ts +5 -154
  59. package/templates/svelte/pages/c3.ts +160 -0
  60. package/{templates-experimental/svelte → templates/svelte/workers}/c3.ts +3 -3
  61. package/templates/svelte/workers/templates/static/.assetsignore +2 -0
  62. package/templates/vue/pages/c3.ts +1 -0
  63. package/templates/vue/workers/js/server/index.js +2 -2
  64. package/templates/vue/workers/js/wrangler.jsonc +0 -1
  65. package/templates/vue/workers/ts/server/index.ts +2 -3
  66. package/templates/vue/workers/ts/wrangler.jsonc +0 -1
  67. package/templates/hono/snippets/appDeclaration.ts +0 -1
  68. package/templates-experimental/next/templates/open-next.config.ts +0 -6
  69. package/templates-experimental/svelte/templates/static/.assetsignore +0 -4
  70. /package/{templates-experimental/hono → templates/hono/pages}/templates/worker-configuration.d.ts +0 -0
  71. /package/{templates-experimental/hono → templates/hono/workers}/templates/public/index.html +0 -0
  72. /package/{templates-experimental/hono → templates/hono/workers}/templates/src/index.ts +0 -0
  73. /package/templates/hono/{templates → workers/templates}/worker-configuration.d.ts +0 -0
  74. /package/{templates-experimental/hono → templates/hono/workers}/templates/wrangler.jsonc +0 -0
  75. /package/templates/next/{README.md → pages/README.md} +0 -0
  76. /package/templates/next/{app → pages/app}/js/app/api/hello/route.js +0 -0
  77. /package/templates/next/{app → pages/app}/js/app/not-found.js +0 -0
  78. /package/templates/next/{app → pages/app}/ts/app/api/hello/route.ts +0 -0
  79. /package/templates/next/{app → pages/app}/ts/app/not-found.tsx +0 -0
  80. /package/templates/next/{env.d.ts → pages/env.d.ts} +0 -0
  81. /package/templates/next/pages/{js → pages/js}/pages/api/hello.js +0 -0
  82. /package/templates/next/pages/{ts → pages/ts}/pages/api/hello.ts +0 -0
  83. /package/templates/next/{wrangler.jsonc → pages/wrangler.jsonc} +0 -0
  84. /package/{templates-experimental/next → templates/next/workers}/templates/.dev.vars +0 -0
  85. /package/{templates-experimental/next → templates/next/workers}/templates/__dot__gitignore +0 -0
  86. /package/{templates-experimental/next → templates/next/workers}/templates/cloudflare-env.d.ts +0 -0
  87. /package/{templates-experimental/qwik → templates/qwik/pages}/snippets/getPlatformProxy.ts +0 -0
  88. /package/{templates-experimental/qwik → templates/qwik/pages}/templates/worker-configuration.d.ts +0 -0
  89. /package/templates/qwik/{templates → pages/templates}/wrangler.jsonc +0 -0
  90. /package/templates/qwik/{snippets → workers/snippets}/getPlatformProxy.ts +0 -0
  91. /package/{templates-experimental/qwik → templates/qwik/workers}/templates/public/.assetsignore +0 -0
  92. /package/templates/qwik/{templates → workers/templates}/worker-configuration.d.ts +0 -0
  93. /package/{templates-experimental/qwik → templates/qwik/workers}/templates/wrangler.jsonc +0 -0
  94. /package/templates/svelte/{templates → pages/templates}/wrangler.jsonc +0 -0
  95. /package/{templates-experimental/svelte → templates/svelte/workers}/templates/wrangler.jsonc +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-cloudflare",
3
- "version": "0.0.0-62d5471ea",
3
+ "version": "0.0.0-62df08af3",
4
4
  "description": "A CLI for creating and deploying new applications to Cloudflare.",
5
5
  "keywords": [
6
6
  "cloudflare",
@@ -30,7 +30,7 @@
30
30
  "@babel/parser": "^7.21.3",
31
31
  "@babel/types": "^7.21.4",
32
32
  "@clack/prompts": "^0.6.3",
33
- "@cloudflare/workers-types": "^4.20250317.0",
33
+ "@cloudflare/workers-types": "^4.20250405.0",
34
34
  "@iarna/toml": "^3.0.0",
35
35
  "@types/command-exists": "^1.2.0",
36
36
  "@types/cross-spawn": "^6.0.2",
@@ -70,12 +70,12 @@
70
70
  "wrap-ansi": "^9.0.0",
71
71
  "xdg-app-paths": "^8.3.0",
72
72
  "yargs": "^17.7.2",
73
+ "@cloudflare/eslint-config-worker": "1.1.0",
73
74
  "@cloudflare/cli": "1.1.1",
74
75
  "@cloudflare/mock-npm-registry": "0.0.0",
75
- "@cloudflare/eslint-config-worker": "1.1.0",
76
- "@cloudflare/vite-plugin": "0.0.0-62d5471ea",
76
+ "@cloudflare/vite-plugin": "0.0.0-62df08af3",
77
77
  "@cloudflare/workers-tsconfig": "0.0.0",
78
- "wrangler": "0.0.0-62d5471ea"
78
+ "wrangler": "0.0.0-62df08af3"
79
79
  },
80
80
  "engines": {
81
81
  "node": ">=18.14.1"
@@ -95,6 +95,7 @@ const config: TemplateConfig = {
95
95
  frameworkCli: "@angular/create",
96
96
  displayName: "Angular",
97
97
  platform: "pages",
98
+ hidden: true,
98
99
  copyFiles: {
99
100
  path: "./templates",
100
101
  },
@@ -63,6 +63,7 @@ const config: TemplateConfig = {
63
63
  id: "astro",
64
64
  frameworkCli: "create-astro",
65
65
  platform: "pages",
66
+ hidden: true,
66
67
  displayName: "Astro",
67
68
  path: "templates/astro/pages",
68
69
  copyFiles: {
@@ -11,5 +11,5 @@
11
11
  },
12
12
  "observability": {
13
13
  "enabled": true
14
- }
14
+ },
15
15
  }
@@ -1,4 +1,6 @@
1
- export default {
1
+ import type { TemplateConfig } from "../../src/templates";
2
+
3
+ const config: TemplateConfig = {
2
4
  configVersion: 1,
3
5
  id: "common",
4
6
  displayName: "Example router & proxy Worker",
@@ -17,3 +19,5 @@ export default {
17
19
  },
18
20
  },
19
21
  };
22
+
23
+ export default config;
@@ -14,6 +14,7 @@ const config: TemplateConfig = {
14
14
  id: "docusaurus",
15
15
  frameworkCli: "create-docusaurus",
16
16
  platform: "pages",
17
+ hidden: true,
17
18
  displayName: "Docusaurus",
18
19
  path: "templates/docusaurus/pages",
19
20
  generate,
@@ -34,6 +34,7 @@ const config: TemplateConfig = {
34
34
  id: "gatsby",
35
35
  frameworkCli: "gatsby",
36
36
  platform: "pages",
37
+ hidden: true,
37
38
  displayName: "Gatsby",
38
39
  path: "templates/gatsby/pages",
39
40
  generate,
@@ -0,0 +1,3 @@
1
+ declare module 'cloudflare:test' {
2
+ interface ProvidedEnv extends Env {}
3
+ }
@@ -1,4 +1,8 @@
1
- // Generated by Wrangler
1
+ // Generated by Wrangler by running `wrangler types --include-runtime=false` (hash: 2905fd8e181cd2f4083a615fa51f1913)
2
2
  // After adding bindings to `wrangler.jsonc`, regenerate this interface via `npm run cf-typegen`
3
- interface Env {
3
+ declare namespace Cloudflare {
4
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface,@typescript-eslint/no-empty-object-type
5
+ interface Env {
6
+ }
4
7
  }
8
+ interface Env extends Cloudflare.Env {}
@@ -1,4 +1,6 @@
1
- export default {
1
+ import type { TemplateConfig } from "../../src/templates";
2
+
3
+ const config: TemplateConfig = {
2
4
  configVersion: 1,
3
5
  id: "hello-world-durable-object",
4
6
  displayName: "Worker + Durable Objects",
@@ -16,3 +18,4 @@ export default {
16
18
  },
17
19
  },
18
20
  };
21
+ export default config;
@@ -1,5 +1,7 @@
1
- // Generated by Wrangler by running `wrangler types`
2
-
3
- interface Env {
4
- MY_DURABLE_OBJECT: DurableObjectNamespace<import("./src/index").MyDurableObject>;
1
+ // Generated by Wrangler by running `wrangler types --include-runtime=false` (hash: 4c81d17e8de07f650cddf73ce751ba8d)
2
+ declare namespace Cloudflare {
3
+ interface Env {
4
+ MY_DURABLE_OBJECT: DurableObjectNamespace<import("./src/index").MyDurableObject>;
5
+ }
5
6
  }
7
+ interface Env extends Cloudflare.Env {}
@@ -52,18 +52,19 @@ export default {
52
52
  * @returns {Promise<Response>} The response to be sent back to the client
53
53
  */
54
54
  async fetch(request, env, ctx) {
55
- // We will create a `DurableObjectId` using the pathname from the Worker request
56
- // This id refers to a unique instance of our 'MyDurableObject' class above
57
- let id = env.MY_DURABLE_OBJECT.idFromName(new URL(request.url).pathname);
55
+ // Create a `DurableObjectId` for an instance of the `MyDurableObject`
56
+ // class named "foo". Requests from all Workers to the instance named
57
+ // "foo" will go to a single globally unique Durable Object instance.
58
+ const id = env.MY_DURABLE_OBJECT.idFromName("foo");
58
59
 
59
- // This stub creates a communication channel with the Durable Object instance
60
- // The Durable Object constructor will be invoked upon the first call for a given id
61
- let stub = env.MY_DURABLE_OBJECT.get(id);
60
+ // Create a stub to open a communication channel with the Durable
61
+ // Object instance.
62
+ const stub = env.MY_DURABLE_OBJECT.get(id);
62
63
 
63
- // We call the `sayHello()` RPC method on the stub to invoke the method on the remote
64
- // Durable Object instance
65
- let greeting = await stub.sayHello("world");
64
+ // Call the `sayHello()` RPC method on the stub to invoke the method on
65
+ // the remote Durable Object instance
66
+ const greeting = await stub.sayHello("world");
66
67
 
67
68
  return new Response(greeting);
68
- },
69
+ }
69
70
  };
@@ -14,9 +14,9 @@
14
14
  }
15
15
  ]
16
16
  },
17
- "migrations": [
17
+ "migrations": [
18
18
  {
19
- "new_classes": [
19
+ "new_sqlite_classes": [
20
20
  "MyDurableObject"
21
21
  ],
22
22
  "tag": "v1"
@@ -49,17 +49,18 @@ export default {
49
49
  * @returns The response to be sent back to the client
50
50
  */
51
51
  async fetch(request, env, ctx): Promise<Response> {
52
- // We will create a `DurableObjectId` using the pathname from the Worker request
53
- // This id refers to a unique instance of our 'MyDurableObject' class above
54
- let id: DurableObjectId = env.MY_DURABLE_OBJECT.idFromName(new URL(request.url).pathname);
52
+ // Create a `DurableObjectId` for an instance of the `MyDurableObject`
53
+ // class named "foo". Requests from all Workers to the instance named
54
+ // "foo" will go to a single globally unique Durable Object instance.
55
+ const id: DurableObjectId = env.MY_DURABLE_OBJECT.idFromName("foo");
55
56
 
56
- // This stub creates a communication channel with the Durable Object instance
57
- // The Durable Object constructor will be invoked upon the first call for a given id
58
- let stub = env.MY_DURABLE_OBJECT.get(id);
57
+ // Create a stub to open a communication channel with the Durable
58
+ // Object instance.
59
+ const stub = env.MY_DURABLE_OBJECT.get(id);
59
60
 
60
- // We call the `sayHello()` RPC method on the stub to invoke the method on the remote
61
- // Durable Object instance
62
- let greeting = await stub.sayHello("world");
61
+ // Call the `sayHello()` RPC method on the stub to invoke the method on
62
+ // the remote Durable Object instance
63
+ const greeting = await stub.sayHello("world");
63
64
 
64
65
  return new Response(greeting);
65
66
  },
@@ -1,5 +1,8 @@
1
- // Generated by Wrangler by running `wrangler types`
2
-
3
- interface Env {
4
- MY_DURABLE_OBJECT: DurableObjectNamespace<import("./src/index").MyDurableObject>;
1
+ // Generated by Wrangler by running `wrangler types --include-runtime=false` (hash: 24be54e90498ce3774054fcb8bb2bc1a)
2
+ declare namespace Cloudflare {
3
+ interface Env {
4
+ MY_DURABLE_OBJECT: DurableObjectNamespace<import("./src/index").MyDurableObject>;
5
+ ASSETS: Fetcher;
6
+ }
5
7
  }
8
+ interface Env extends Cloudflare.Env {}
@@ -4,7 +4,7 @@
4
4
  "compatibility_date": "<TBD>",
5
5
  "migrations": [
6
6
  {
7
- "new_classes": [
7
+ "new_sqlite_classes": [
8
8
  "MyDurableObject"
9
9
  ],
10
10
  "tag": "v1"
@@ -1,4 +1,6 @@
1
- export default {
1
+ import type { TemplateConfig } from "../../src/templates";
2
+
3
+ const config: TemplateConfig = {
2
4
  configVersion: 1,
3
5
  id: "hello-world-with-assets",
4
6
  path: "templates/hello-world-with-assets",
@@ -19,3 +21,4 @@ export default {
19
21
  },
20
22
  },
21
23
  };
24
+ export default config;
@@ -7,8 +7,8 @@
7
7
  </head>
8
8
  <body>
9
9
  <h1 id="heading"></h1>
10
- <button id="button">Fetch a random UUID</button>
11
- <div id="random"></div>
10
+ <button id="button" type="button">Fetch a random UUID</button>
11
+ <output id="random" for="button"></output>
12
12
  <script>
13
13
  fetch('/message')
14
14
  .then((resp) => resp.text())
@@ -7,8 +7,8 @@
7
7
  </head>
8
8
  <body>
9
9
  <h1 id="heading"></h1>
10
- <button id="button">Fetch a random UUID</button>
11
- <div id="random"></div>
10
+ <button id="button" type="button">Fetch a random UUID</button>
11
+ <output id="random" for="button"></output>
12
12
  <script>
13
13
  fetch('/message')
14
14
  .then((resp) => resp.text())
@@ -7,8 +7,8 @@
7
7
  </head>
8
8
  <body>
9
9
  <h1 id="heading"></h1>
10
- <button id="button">Fetch a random UUID</button>
11
- <div id="random"></div>
10
+ <button id="button" type="button">Fetch a random UUID</button>
11
+ <output id="random" for="button"></output>
12
12
  <script>
13
13
  fetch('/message')
14
14
  .then((resp) => resp.text())
@@ -0,0 +1,3 @@
1
+ declare module 'cloudflare:test' {
2
+ interface ProvidedEnv extends Env {}
3
+ }
@@ -3,6 +3,6 @@
3
3
  "compilerOptions": {
4
4
  "types": ["@cloudflare/workers-types/experimental", "@cloudflare/vitest-pool-workers"]
5
5
  },
6
- "include": ["./**/*.ts", "../src/env.d.ts"],
6
+ "include": ["./**/*.ts", "../worker-configuration.d.ts"],
7
7
  "exclude": []
8
8
  }
@@ -1,4 +1,7 @@
1
- // Generated by Wrangler
2
- // After adding bindings to `wrangler.jsonc`, regenerate this interface via `npm run cf-typegen`
3
- interface Env {
1
+ // Generated by Wrangler by running `wrangler types --include-runtime=false` (hash: 187132f48ddf0f604882ba8213fe386f)
2
+ declare namespace Cloudflare {
3
+ interface Env {
4
+ ASSETS: Fetcher;
5
+ }
4
6
  }
7
+ interface Env extends Cloudflare.Env {}
@@ -1,70 +1,9 @@
1
- import { logRaw } from "@cloudflare/cli";
2
- import { brandColor, dim } from "@cloudflare/cli/colors";
3
- import { spinner } from "@cloudflare/cli/interactive";
4
- import { runFrameworkGenerator } from "frameworks/index";
5
- import { loadTemplateSnippets, transformFile } from "helpers/codemod";
6
- import { detectPackageManager } from "helpers/packageManagers";
7
- import type { TemplateConfig } from "../../src/templates";
8
- import type * as recast from "recast";
9
- import type { C3Context } from "types";
1
+ import pages from "./pages/c3";
2
+ import workers from "./workers/c3";
3
+ import type { MultiPlatformTemplateConfig } from "../../src/templates";
10
4
 
11
- const generate = async (ctx: C3Context) => {
12
- const { name: pm } = detectPackageManager();
13
-
14
- await runFrameworkGenerator(ctx, [
15
- ctx.project.name,
16
- "--template",
17
- "cloudflare-workers",
18
- "--install",
19
- "--pm",
20
- pm,
21
- ]);
22
-
23
- logRaw(""); // newline
24
- };
25
-
26
- const configure = async (ctx: C3Context) => {
27
- const indexFile = "src/index.ts";
28
-
29
- const s = spinner();
30
- s.start(`Updating \`${indexFile}\``);
31
-
32
- const snippets = loadTemplateSnippets(ctx);
33
-
34
- transformFile(indexFile, {
35
- visitVariableDeclarator(n) {
36
- if (n.node.id.type === "Identifier" && n.node.id.name === "app") {
37
- n.node.init = snippets
38
- .appDeclarationTs[0] as recast.types.namedTypes.NewExpression;
39
-
40
- return false;
41
- }
42
- },
43
- });
44
-
45
- s.stop(`${brandColor("updated")} \`${dim(indexFile)}\``);
46
- };
47
-
48
- const config: TemplateConfig = {
49
- configVersion: 1,
50
- id: "hono",
51
- frameworkCli: "create-hono",
5
+ const config: MultiPlatformTemplateConfig = {
52
6
  displayName: "Hono",
53
- copyFiles: {
54
- path: "./templates",
55
- },
56
- platform: "workers",
57
- generate,
58
- configure,
59
- transformPackageJson: async () => ({
60
- scripts: {
61
- dev: "wrangler dev",
62
- deploy: "wrangler deploy --minify",
63
- "cf-typegen": "wrangler types --env-interface CloudflareBindings",
64
- },
65
- }),
66
- devScript: "dev",
67
- deployScript: "deploy",
68
- previewScript: "dev",
7
+ platformVariants: { pages, workers },
69
8
  };
70
9
  export default config;
@@ -0,0 +1,44 @@
1
+ import { logRaw } from "@cloudflare/cli";
2
+ import { runFrameworkGenerator } from "frameworks/index";
3
+ import { detectPackageManager } from "helpers/packageManagers";
4
+ import type { TemplateConfig } from "../../../src/templates";
5
+ import type { C3Context } from "types";
6
+
7
+ const generate = async (ctx: C3Context) => {
8
+ const { name: pm } = detectPackageManager();
9
+
10
+ await runFrameworkGenerator(ctx, [
11
+ ctx.project.name,
12
+ "--template",
13
+ "cloudflare-pages",
14
+ "--install",
15
+ "--pm",
16
+ pm,
17
+ ]);
18
+
19
+ logRaw(""); // newline
20
+ };
21
+
22
+ const config: TemplateConfig = {
23
+ configVersion: 1,
24
+ id: "hono",
25
+ frameworkCli: "create-hono",
26
+ displayName: "Hono",
27
+ copyFiles: {
28
+ path: "./templates",
29
+ },
30
+ path: "templates/hono/pages",
31
+ platform: "pages",
32
+ hidden: true,
33
+ generate,
34
+ transformPackageJson: async () => ({
35
+ scripts: {
36
+ "cf-typegen": "wrangler types --env-interface CloudflareBindings",
37
+ preview: "vite build && wrangler pages dev",
38
+ },
39
+ }),
40
+ devScript: "dev",
41
+ deployScript: "deploy",
42
+ previewScript: "preview",
43
+ };
44
+ export default config;
@@ -0,0 +1,12 @@
1
+ import { Hono } from 'hono'
2
+ import { renderer } from './renderer'
3
+
4
+ const app = new Hono<{ Bindings: CloudflareBindings }>();
5
+
6
+ app.use(renderer)
7
+
8
+ app.get('/', (c) => {
9
+ return c.render(<h1>Hello!</h1>)
10
+ })
11
+
12
+ export default app
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "<TBD>",
3
- "main": "src/index.ts",
4
3
  "compatibility_date": "<TBD>",
4
+ "pages_build_output_dir": "./dist",
5
5
  "observability": {
6
6
  "enabled": true
7
7
  }
@@ -1,7 +1,7 @@
1
1
  import { logRaw } from "@cloudflare/cli";
2
2
  import { runFrameworkGenerator } from "frameworks/index";
3
3
  import { detectPackageManager } from "helpers/packageManagers";
4
- import type { TemplateConfig } from "../../src/templates";
4
+ import type { TemplateConfig } from "../../../src/templates";
5
5
  import type { C3Context } from "types";
6
6
 
7
7
  const generate = async (ctx: C3Context) => {
@@ -28,12 +28,10 @@ const config: TemplateConfig = {
28
28
  path: "./templates",
29
29
  },
30
30
  platform: "workers",
31
- path: "templates-experimental/hono",
31
+ path: "templates/hono/workers",
32
32
  generate,
33
33
  transformPackageJson: async () => ({
34
34
  scripts: {
35
- dev: "wrangler dev",
36
- deploy: "wrangler deploy --minify",
37
35
  "cf-typegen": "wrangler types --env-interface CloudflareBindings",
38
36
  },
39
37
  }),