guys do cloudflare support dynamic page
guys do cloudflare support dynamic page like "app/profile/[id]"?
Here is the code for that dynamic page's page.tsx
And i am getting this error in cloudflare deployment build.
Here is the provider that is wrapping the main layout.tsx file
2 Replies
Yes, dynamic pages work fine. Your error is from your worker being bigger than the free tier's 1mb limit. Note that the limit is higher for Workers paid ($5/mo).
If you look in the
.vercel/output/static/_worker.js
directory after building your application locally, you will get an idea of what builds up your site's worker. This would be a good place to start to figure out what's taking up so much space.
Please can you do a build using the latest beta release of next-on-pages - npx @cloudflare/next-on-pages@beta
and send the nop-build-log.json file located at .vercel/output/static/_worker.js/nop-build-log.json
, and we can try and figure out together what's taking up so much space in your worker?It works great for us, mind you a lot of apps even small if not optimized will be over 1mb