Skip to content

Commit c5e69d6

Browse files
committed
README: Add environment variable to Cloudflare Pages build
1 parent c8e98a0 commit c5e69d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -350,11 +350,12 @@ If your SPA configuration block is different, then the newly built and deployed
350350
| Build command | `yarn build:jamstack` |
351351
| Build output directory | `client/dist` |
352352
353-
Add the following environment variable:
353+
Add the following environment variables:
354354
355355
| Environment variable | Value |
356356
| :-------------------- | :----- |
357357
| NODE_VERSION | `16.13.0` |
358+
|NODE_ENV|`production`|
358359
359360
Optionally, you can customize the "Project name" field. It defaults to the GitHub repository name, but it does not need to match. The "Project name" is used to create a unique `*.pages.dev` subdomain. If the name is unique, it will be used as is, otherwise it will be altered a bit to ensure uniqueness. The resulting subdomain will be referred to as 'per-project subdomain' e.g. `<per-project>.pages.dev`.
360361

0 commit comments

Comments
 (0)