Next.js Discord

Discord Forum

Deployment on Azure Storage Account: Upload .next folder?

Unanswered
Polar bear posted this in #help-forum
Open in Discord
Polar bearOP
I want to deploy my next js App on Azure Storage account, where I just upload the static web on the $web container of the storage account.

But how / Which files do I upload in the $web container from the .next folder? Because usually in other apps its a dist folder containing index.html file & other files but in .next there are folders.

Thank you.

2 Replies

Jumbo flying squid
It requires some change in your config for this.

You can take a look at https://nextjs.org/docs/pages/building-your-application/deploying/static-exports on how to export your app how you want.
@Jumbo flying squid It requires some change in your config for this. You can take a look at https://nextjs.org/docs/pages/building-your-application/deploying/static-exports on how to export your app how you want.
Polar bearOP
Thank you very much for your reply..This worked! (I just had some build errors that I had to fix for the out folder to be generated)🙏 🌷