Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions docs/cloudflare-build-and-deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ 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.
- This is currently set up to a R2 bucket in the aforementioned Cloudflare testing account.
- This is set up to a R2 bucket in the aforementioned Cloudflare account.
- `durable_objects`: Contains a single DurableObject binding definition for `NEXT_CACHE_DO_QUEUE`. This is used to implement the Open-next cache queue.
- `version_metadata`: Contains a binding for `CF_VERSION_METADATA`, used for Sentry release configuration (see [Sentry](#sentry) below).

Expand Down
Loading