Skip to content

How to Deploy the Next Project to Netlify #5

Discussion options

You must be logged in to vote
  • Update next.config.js for Static Export Ensure your Next.js project is configured to output static HTML:
module.exports = {
  output: 'export',
};
  • Build the Static Files Run the following commands in your project directory:
npm run build

or

npm run export

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nadun-kosala
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants