Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/tmp-cloudflare-open-next-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ jobs:
env:
CF_WORKERS_SCRIPTS_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: fb4a2d0f103c6ff38854ac69eb709272
CLOUDFLARE_ACCOUNT_ID: 07be8d2fbc940503ca1be344714cb0d1
4 changes: 2 additions & 2 deletions apps/site/wrangler.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"name": "nodejs-website",
"compatibility_date": "2024-11-07",
"compatibility_flags": ["nodejs_compat", "global_fetch_strictly_public"],
"account_id": "fb4a2d0f103c6ff38854ac69eb709272",
"account_id": "07be8d2fbc940503ca1be344714cb0d1",
"minify": true,
"keep_names": false,
"assets": {
Expand All @@ -24,7 +24,7 @@
// needs to be set as well in the Cloudflare dashboard
"CF_WORKER_NAME": "nodejs-website",
"CF_PREVIEW_DOMAIN": "nodejsorg",
"CF_ACCOUNT_ID": "fb4a2d0f103c6ff38854ac69eb709272",
"CF_ACCOUNT_ID": "07be8d2fbc940503ca1be344714cb0d1",
},
"observability": {
"enabled": true,
Expand Down
2 changes: 1 addition & 1 deletion docs/cloudflare-build-and-deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Key configurations include:

- `main`: Points to a custom worker entry point ([`site/cloudflare/worker-entrypoint.ts`](../apps/site/cloudflare/worker-entrypoint.ts)) that wraps the OpenNext-generated worker (see [Custom Worker Entry Point](#custom-worker-entry-point) and [Sentry](#sentry) below).
- `account_id`: Specifies the Cloudflare account ID. This is not required for local previews but is necessary for deployments. You can obtain an account ID for free by signing up at [dash.cloudflare.com](https://dash.cloudflare.com/login).
- This is currently set to `fb4a2d0f103c6ff38854ac69eb709272`, which is the ID of a Cloudflare account controlled by Node.js, and used for testing.
- This is set to `07be8d2fbc940503ca1be344714cb0d1`, which is the ID of a Cloudflare account controlled by Node.js.
Comment thread
ovflowd marked this conversation as resolved.
- `build`: Defines the build command to generate the Node.js filesystem polyfills required for the application to run on Cloudflare Workers. This uses the [`@flarelabs/wrangler-build-time-fs-assets-polyfilling`](https://github.com/flarelabs-net/wrangler-build-time-fs-assets-polyfilling) package.
- `alias`: Maps aliases for the Node.js filesystem polyfills generated during the build process.
- `r2_buckets`: Contains a single R2 binding definition for `NEXT_INC_CACHE_R2_BUCKET`. This is used to implement the Next.js incremental cache.
Expand Down
Loading