Skip to content

Commit

Permalink
Merge pull request #3 from flarelabs-net/workers-assets
Browse files Browse the repository at this point in the history
update instructions to use Workers with Assets
  • Loading branch information
petebacondarwin authored Sep 12, 2024
2 parents 7d8ce35 + 007491d commit 5866969
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion TODO.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,15 @@ export default nextConfig;
#:schema node_modules/wrangler/config-schema.json
name = "api"
main = ".worker-next/index.mjs"
assets = ".worker-next/assets"

compatibility_date = "2024-08-29"
compatibility_flags = ["nodejs_compat_v2"]
workers_dev = true
minify = false

# Use the new Workers + Assets to host the static frontend files
experimental_assets = { directory = ".worker-next/assets", binding = "ASSETS" }

# The aliases below should not be needed (we don't want users to have to define the aliases themselves)
[alias]
# critters is `require`d from `pages.runtime.prod.js` when running wrangler dev, so we need to stub it out
Expand Down

0 comments on commit 5866969

Please sign in to comment.