loading...

Deploying a NextJS app on Azure App Service

twitter logo ・1 min read

From what I experience, deploying a ReactJS with NodeJS on Azure App Service is no problem. Deploying a NextJS on a DigitalOcean droplet is also no problem. But NextJS on Azure deployment causes this error:

npm ERR! 404 'zeit/next-css' is not in the npm registry.

There are also may strange symptoms that are hard and would take too long to describe and too boring to read.

For example, if I click on "Redeploy", then this will be shown instead of the previous error message. Now, this might be just an artifact.

NextJS on Azure

Long story short, how is your experience if you have dealt with this scenario?

twitter logo DISCUSS (1)
markdown guide
 

I done using Azure DevOps. Part of build process, we use npm run build command which looks at package.config and finds dependecies and downloads all node_modules part of build process. The build destination artifacts zip contains dependency modules. The same build goes to Azure App service.

Please check build destination zip folder contains next-css module.

Classic DEV Post from Sep 2 '19

What do you think of minimalist UI?

Kevin Le profile image
My goal is to solve problems in software

👋 Hey dev.to reader.

Create an account to snag your very own dev.to/username.

Register here. ❤️