Unable to export my Next.Js application
Unanswered
Valentine ant posted this in #help-forum
Valentine antOP
I'm using this command to deploy my "NextJs" app:
My build is successful and next export is failed and returning this message:
I have read the above article too. It saying me to add output: export in the next.config.js file.
There is already that line added in my next config file.
Also I tried to export it in cloudflare that to not exporting.
Please help me to over come this issue.
#discussions #help-forum #static-export #cloud-flare
npm run build && npx next export
My build is successful and next export is failed and returning this message:
⨯next export
has been removed in favor of 'output: export' in next.config.js. Learn more: https://nextjs.org/docs/app/building-your-application/deploying/static-exports
I have read the above article too. It saying me to add output: export in the next.config.js file.
There is already that line added in my next config file.
Also I tried to export it in cloudflare that to not exporting.
Please help me to over come this issue.
#discussions #help-forum #static-export #cloud-flare
3 Replies
if output:'export' is added and you run pnpm build, it already generates the static build
@Yi Lon Ma if output:'export' is added and you run pnpm build, it already generates the static build
Valentine antOP
static build is generating(out folder with static html files are there) . I can't able to export it.
@Valentine ant I'm using this command to deploy my "NextJs" app:
> npm run build && npx next export
My build is successful and next export is failed and returning this message:
> ⨯ `next export` has been removed in favor of 'output: export' in next.config.js. Learn more: https://nextjs.org/docs/app/building-your-application/deploying/static-exports
I have read the above article too. It saying me to add output: export in the next.config.js file.
There is already that line added in my next config file.
Also I tried to export it in cloudflare that to not exporting.
Please help me to over come this issue.
<#752647196419031042> <#1007476603422527558> #static-export #cloud-flare
Valentine antOP
This issue was due to next version.
I fixed this issue. the "next export" command is gone in nextjs -v15 and above.
I used only npm run build. and it automatically exported in cloudflare.
#Resolved #Fixed
I fixed this issue. the "next export" command is gone in nextjs -v15 and above.
I used only npm run build. and it automatically exported in cloudflare.
#Resolved #Fixed