DEV Community

Kevin Le
Kevin Le

Posted on

3

Deploying a NextJS app on Azure App Service

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?

Top comments (1)

Collapse
 
munagavenkat profile image
munagavenkat • Edited

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.

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay