npx create-next-app --example blog-starter blog-starter-app
/**
* @type {import('next').NextConfig}
*/
const isProd = process.env.NODE_ENV === 'production';
const nextConfig = {
basePath: isProd ? '/rlan.github.blog' : '',
output: 'export',
distDir: 'dist',
images: {
unoptimized: true,
}
}
module.exports = nextConfig
npm run build