Next.js Discord

Discord Forum

How to deploy NextJS 13 on Azure?

Unanswered
American black bear posted this in #help-forum
Open in Discord
Avatar
American black bearOP
Is it optimal to dpeloy on Azure? And, How to deploy the nextjs application which follows app folder structure

5 Replies

Avatar
tafutada777
Azure Container Apps would be easier as it's Dockerizing an app.
https://code.visualstudio.com/docs/containers/app-service
Avatar
American black bearOP
@tafutada777 do you have any nextjs examples of docker-compose and Dockerfile files
Avatar
tafutada777
just google it. many examples out there like this.
https://geshan.com.np/blog/2023/01/nextjs-docker/
one caveat. you might need to make pages dynamic as Next.js executes codes when building a Docker image, meaning static pages are backed in the image, which would be problem when spinning up an instance. many people get stuck with it and asked here.
Avatar
American black bearOP
Thanks @tafutada777