The CloudFlare Doc say that the worker.js need to put into the output directory.
My pages project based on Next.js and I had a Worker project that just has one js file. And I want to make them one project.
In my wrangler.toml file, pages_build_output_dir = “.vercel/output/static”, means the output directory is “.vercel/output/static”? Put the worker.js input it but is doesn’t work.
I try to modidied the pages_build_output_dir to ‘.dist’ and put the worker.js into it, still not work.
New contributor
Ascen Zhong is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.