Skip to content

Instantly share code, notes, and snippets.

@sand97
Created January 3, 2022 00:28
Show Gist options
  • Save sand97/ad66d3573a3a1ad5e3a1ec0473db50ee to your computer and use it in GitHub Desktop.
Save sand97/ad66d3573a3a1ad5e3a1ec0473db50ee to your computer and use it in GitHub Desktop.
Package.json script for custom server of Next.js application
"scripts": {
"dev": "node server.js",
"build": "next build",
"start": "NODE_ENV=production node server.js"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment