Skip to content

Commit 007491d

Browse files
update instructions to use Workers with Assets
1 parent 7d8ce35 commit 007491d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

TODO.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,15 @@ export default nextConfig;
3838
#:schema node_modules/wrangler/config-schema.json
3939
name = "api"
4040
main = ".worker-next/index.mjs"
41-
assets = ".worker-next/assets"
41+
4242
compatibility_date = "2024-08-29"
4343
compatibility_flags = ["nodejs_compat_v2"]
4444
workers_dev = true
4545
minify = false
4646

47+
# Use the new Workers + Assets to host the static frontend files
48+
experimental_assets = { directory = ".worker-next/assets", binding = "ASSETS" }
49+
4750
# The aliases below should not be needed (we don't want users to have to define the aliases themselves)
4851
[alias]
4952
# critters is `require`d from `pages.runtime.prod.js` when running wrangler dev, so we need to stub it out

0 commit comments

Comments
 (0)