Skip to content

Commit

Permalink
Remove build.dev in favour of process.env.NODE_ENV in the Cloudfl…
Browse files Browse the repository at this point in the history
…are Workers template (#6912)
  • Loading branch information
huw authored Jul 21, 2023
1 parent 80c6842 commit 3ae0c14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@
- Hopsken
- houmark
- humphd
- huw
- huyb1991
- hzhu
- harshmangalam
Expand Down
2 changes: 1 addition & 1 deletion templates/cloudflare-workers/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import __STATIC_CONTENT_MANIFEST from "__STATIC_CONTENT_MANIFEST";
const MANIFEST = JSON.parse(__STATIC_CONTENT_MANIFEST);
const handleRemixRequest = createRequestHandler(build, process.env.NODE_ENV);

if (build.dev) {
if (process.env.NODE_ENV === "development") {
logDevReady(build);
}

Expand Down

0 comments on commit 3ae0c14

Please sign in to comment.