Created
February 23, 2024 21:59
-
-
Save LearnWebCode/542f15ec8e44b3677199071a49728dd6 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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @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
if you use Tailwind CSS then yes
Brad made a video about this
but if not I think you need to use Uniq classess and some !important