A starter template built with Next.js and TailwindCSS.
pnpm install
pnpm devpnpm build
pnpm startTo enable static export, update next.config.js:
// next.config.js
module.exports = () => {
const plugins = [withBundleAnalyzer]
return plugins.reduce((acc, next) => next(acc), {
// for static builds
output: 'export',
...Then build the project:
pnpm build
# Run any web server you prefer and host the /out directory.
# Below is an example using http-server (install it globally first):
http-server out