Skip to content

Commit

Permalink
chore: fix cf build
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Jul 4, 2024
1 parent 8bb70cb commit 7adbd87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions remix-tutorial/misc/cloudflare-workers/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ npx esbuild ../../dist/server/index.js \
--outfile=dist/server/index.js \
--metafile=dist/esbuild-metafile.json \
--define:process.env.NODE_ENV='"production"' \
--external:node:async_hooks \
--bundle \
--minify \
--format=esm \
Expand Down
1 change: 1 addition & 0 deletions remix-tutorial/misc/cloudflare-workers/wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ main = "dist/server/index.js"
assets = "dist/client"
workers_dev = true
compatibility_date = "2024-01-01"
compatibility_flags = ["nodejs_compat"]

0 comments on commit 7adbd87

Please sign in to comment.