Next.js
Documentation
Quickstart
Installation
npx --yes create-next-app@latest
Configuration
Configure the Static Exports option:
next.config.mjs
/** @type {import('next').NextConfig} */const nextConfig = { output: 'export',}export default nextConfig
Other options include trailingSlash
and skipTrailingSlashRedirect
.
Please be aware of unsupported features with Static Exports.
Deployment
Build
npm run build
Preview
npx --yes serve@latest out
Deploy
npx --yes bunny-launcher@latest --interactive