Home > Back-end >  Need static port to work with app in netlify production build
Need static port to work with app in netlify production build

Time:11-07

Is there any way to change port in netlify actually need static port 3000 to make my app work.

The App need port 3000 in netlify prod.

CodePudding user response:

Use this when running server

netlify dev -p (your port e.g: 8885)

CodePudding user response:

You can use the Netlify CLI and pass in the command:

netlify dev -p 3000

Specifying custom ports for Netlify Dev:

  • targetPort: The port for your application server, framework or site generator.
  • port: The port for the Netlify Dev server, the one you'll open in the browser.

ref

  • Related