Skip to content

Instantly share code, notes, and snippets.

@hkkcngz
Forked from LearnWebCode/next.config.js
Created February 26, 2024 00:20
Show Gist options
  • Save hkkcngz/0fcb775ee2d63d16ba452bfcae08289f to your computer and use it in GitHub Desktop.
Save hkkcngz/0fcb775ee2d63d16ba452bfcae08289f to your computer and use it in GitHub Desktop.
For outputting static HTML files from Next.js that any server can easily host (I was integrating with an old WordPress site for the rest of the domain)
/**
* @type {import('next').NextConfig}
*/
const nextConfig = {
output: "export",
trailingSlash: true,
images: { unoptimized: true }
}
module.exports = nextConfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment