Nextjs static stite with no functions deployment fails at deployment stage. Cloudflarestatus.com has no downtime reports, tried retry deployment multiple times.
Logs: cloudflare next js static site Failed: an internal error occurred · GitHub
Nextjs static stite with no functions deployment fails at deployment stage. Cloudflarestatus.com has no downtime reports, tried retry deployment multiple times.
Logs: cloudflare next js static site Failed: an internal error occurred · GitHub
Most common cause is your output folder being incorrect. Please double-check and make sure it’s 100% correct.
This solution works.
This setting worked:
Build command:
next build && next export
Build output directory:
/out
Root directory:
/
Build comments on pull requests:
Enabled
In my case, I am using NuxtJS whose build setting is as follow :
Build command: yarn build
Build output directory: /.output
Root directory: /
Environment variables: None
However, it says Failed: an internal error occurred
at the end of Deploying to Cloudflare's global network
log.
Edit :
I changed Build output directory
to
Build output directory: /.output/server
but still failed.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.