Skip to content

Instantly share code, notes, and snippets.

@irazasyed
Created October 10, 2023 18:10
Show Gist options
  • Save irazasyed/aa50c4b321660ebeea745bdc25de6513 to your computer and use it in GitHub Desktop.
Save irazasyed/aa50c4b321660ebeea745bdc25de6513 to your computer and use it in GitHub Desktop.
NextJS Static Export Config

NextJS Static Export Config

next.config.js

{
	output: "export",
	distDir: "dist",
	crossOrigin: "anonymous",
	assetPrefix: ".",
	images: {
		unoptimized: true,
	},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment