© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•8mo ago•
1 reply
qwertyuiop

Next.js project build missing public assets during deployment

Hi I have a next.js project configured with workers. It has connected to github and triggers a build automatically.

My build command is:
npx opennextjs-cloudflare build
npx opennextjs-cloudflare build


Deploy command is:
npx opennextjs-cloudflare deploy
npx opennextjs-cloudflare deploy


Now the issue is that if I run the deploy command from my local machine, everything gets uploaded, showing ~100 files from the assets directory. But if it's a build by cloudflare, it only shows 6 files from the assets directory, everything under /_next/static is missing.

What could be causing this issue?
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Next JS Git Deployment Help - Out of memory
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
7mo ago
ERROR DURING DEPLOYMENT (PAGES)
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
4mo ago
Next.js requiring env variables in build variables
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
6mo ago
Dependency Conflict in Next.js Cloudflare Template during npm install
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
10mo ago