create-cloudflare 2.28.0 → 2.29.0
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/dist/cli.js +378 -297
- package/package.json +4 -4
- package/templates/common/js/wrangler.toml +6 -0
- package/templates/common/ts/wrangler.toml +6 -0
- package/templates/hello-world/js/wrangler.toml +6 -0
- package/templates/hello-world/py/wrangler.toml +6 -0
- package/templates/hello-world/ts/wrangler.toml +6 -0
- package/templates/hello-world-durable-object/js/wrangler.toml +6 -0
- package/templates/hello-world-durable-object/ts/wrangler.toml +6 -0
- package/templates/hono/templates/wrangler.toml +6 -0
- package/templates/openapi/ts/wrangler.toml +6 -0
- package/templates/queues/js/wrangler.toml +6 -0
- package/templates/queues/ts/wrangler.toml +6 -0
- package/templates/scheduled/js/wrangler.toml +6 -0
- package/templates/scheduled/ts/wrangler.toml +6 -0
- package/templates-experimental/angular/c3.ts +6 -10
- package/templates-experimental/angular/templates/tools/alter-polyfills.mjs +12 -7
- package/templates-experimental/angular/templates/wrangler.toml +8 -2
- package/templates-experimental/astro/templates/wrangler.toml +7 -1
- package/templates-experimental/docusaurus/templates/wrangler.toml +7 -1
- package/templates-experimental/gatsby/templates/wrangler.toml +7 -1
- package/templates-experimental/hello-world-assets-only/templates/wrangler.toml +7 -1
- package/templates-experimental/hello-world-durable-object-with-assets/js/wrangler.toml +6 -1
- package/templates-experimental/hello-world-durable-object-with-assets/ts/wrangler.toml +6 -1
- package/templates-experimental/hello-world-with-assets/js/wrangler.toml +7 -1
- package/templates-experimental/hello-world-with-assets/py/wrangler.toml +7 -1
- package/templates-experimental/hello-world-with-assets/ts/wrangler.toml +7 -1
- package/templates-experimental/hono/c3.ts +43 -0
- package/templates-experimental/hono/templates/public/index.html +19 -0
- package/templates-experimental/hono/templates/src/index.ts +9 -0
- package/templates-experimental/hono/templates/worker-configuration.d.ts +4 -0
- package/templates-experimental/hono/templates/wrangler.toml +5 -0
- package/templates-experimental/next/c3.ts +52 -0
- package/templates-experimental/next/templates/__dot__gitignore +42 -0
- package/templates-experimental/next/templates/env.d.ts +5 -0
- package/templates-experimental/next/templates/wrangler.toml +12 -0
- package/templates-experimental/nuxt/templates/wrangler.toml +7 -1
- package/templates-experimental/qwik/templates/wrangler.toml +7 -1
- package/templates-experimental/remix/templates/wrangler.toml +7 -1
- package/templates-experimental/solid/templates/wrangler.toml +7 -1
- package/templates-experimental/svelte/js/wrangler.toml +7 -1
- package/templates-experimental/svelte/ts/wrangler.toml +7 -1
- package/templates-experimental/angular/templates/src/.assetsignore +0 -4
- package/templates-experimental/angular/templates/tools/copy-files.mjs +0 -9
- package/templates-experimental/angular/templates/tools/paths.mjs +0 -9
|
@@ -3,4 +3,10 @@ name = "<TBD>"
|
|
|
3
3
|
compatibility_date = "<TBD>"
|
|
4
4
|
compatibility_flags = ["nodejs_compat"]
|
|
5
5
|
main = "./dist/_worker.js"
|
|
6
|
-
|
|
6
|
+
assets = { directory = "./dist", binding = "ASSET" }
|
|
7
|
+
|
|
8
|
+
# Workers Logs
|
|
9
|
+
# Docs: https://developers.cloudflare.com/workers/observability/logs/workers-logs/
|
|
10
|
+
# Configuration: https://developers.cloudflare.com/workers/observability/logs/workers-logs/#enable-workers-logs
|
|
11
|
+
[observability]
|
|
12
|
+
enabled = true
|
|
@@ -2,4 +2,10 @@
|
|
|
2
2
|
name = "<TBD>"
|
|
3
3
|
compatibility_date = "<TBD>"
|
|
4
4
|
main = "./build/worker/index.js"
|
|
5
|
-
|
|
5
|
+
assets = { directory = "./build/client" }
|
|
6
|
+
|
|
7
|
+
# Workers Logs
|
|
8
|
+
# Docs: https://developers.cloudflare.com/workers/observability/logs/workers-logs/
|
|
9
|
+
# Configuration: https://developers.cloudflare.com/workers/observability/logs/workers-logs/#enable-workers-logs
|
|
10
|
+
[observability]
|
|
11
|
+
enabled = true
|
|
@@ -3,4 +3,10 @@ name = "<TBD>"
|
|
|
3
3
|
compatibility_date = "<TBD>"
|
|
4
4
|
compatibility_flags = ["nodejs_compat"]
|
|
5
5
|
main = "./dist/worker/index.js"
|
|
6
|
-
|
|
6
|
+
assets = { directory = "./dist/public", binding = "ASSETS" }
|
|
7
|
+
|
|
8
|
+
# Workers Logs
|
|
9
|
+
# Docs: https://developers.cloudflare.com/workers/observability/logs/workers-logs/
|
|
10
|
+
# Configuration: https://developers.cloudflare.com/workers/observability/logs/workers-logs/#enable-workers-logs
|
|
11
|
+
[observability]
|
|
12
|
+
enabled = true
|
|
@@ -2,4 +2,10 @@
|
|
|
2
2
|
name = "<TBD>"
|
|
3
3
|
compatibility_date = "<TBD>"
|
|
4
4
|
main = ".svelte-kit/cloudflare/_worker.js"
|
|
5
|
-
|
|
5
|
+
assets = { directory = ".svelte-kit/cloudflare", binding = "ASSETS" }
|
|
6
|
+
|
|
7
|
+
# Workers Logs
|
|
8
|
+
# Docs: https://developers.cloudflare.com/workers/observability/logs/workers-logs/
|
|
9
|
+
# Configuration: https://developers.cloudflare.com/workers/observability/logs/workers-logs/#enable-workers-logs
|
|
10
|
+
[observability]
|
|
11
|
+
enabled = true
|
|
@@ -2,4 +2,10 @@
|
|
|
2
2
|
name = "<TBD>"
|
|
3
3
|
compatibility_date = "<TBD>"
|
|
4
4
|
main = ".svelte-kit/cloudflare/_worker.js"
|
|
5
|
-
|
|
5
|
+
assets = { directory = ".svelte-kit/cloudflare", binding = "ASSETS" }
|
|
6
|
+
|
|
7
|
+
# Workers Logs
|
|
8
|
+
# Docs: https://developers.cloudflare.com/workers/observability/logs/workers-logs/
|
|
9
|
+
# Configuration: https://developers.cloudflare.com/workers/observability/logs/workers-logs/#enable-workers-logs
|
|
10
|
+
[observability]
|
|
11
|
+
enabled = true
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
// Copy the files over so that they can be uploaded by the pages publish command.
|
|
2
|
-
import fs from "node:fs";
|
|
3
|
-
import { join } from "node:path";
|
|
4
|
-
import { client, cloudflare, ssr, worker } from "./paths.mjs";
|
|
5
|
-
|
|
6
|
-
fs.cpSync(client, cloudflare, { recursive: true });
|
|
7
|
-
fs.cpSync(ssr, worker, { recursive: true });
|
|
8
|
-
|
|
9
|
-
fs.renameSync(join(worker, "server.mjs"), join(worker, "index.js"));
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import path from "node:path";
|
|
2
|
-
import { fileURLToPath } from "node:url";
|
|
3
|
-
|
|
4
|
-
const dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
5
|
-
export const root = path.resolve(dirname, "..");
|
|
6
|
-
export const client = path.resolve(root, "dist/browser");
|
|
7
|
-
export const ssr = path.resolve(root, "dist/server");
|
|
8
|
-
export const cloudflare = path.resolve(root, "dist/cloudflare");
|
|
9
|
-
export const worker = path.resolve(cloudflare, "_worker.js");
|