Files
pikachu/next.config.mjs
tiennm99 214c305e83 ci: add GitHub Actions workflow to deploy to GitHub Pages
- Add deploy.yml: test → build → deploy pipeline
- Update next.config.mjs with basePath/assetPrefix for /pikachu/ subpath
- Uses actions/deploy-pages for GitHub Pages deployment
2026-04-04 14:42:00 +07:00

11 lines
234 B
JavaScript

const isProd = process.env.NODE_ENV === 'production';
const nextConfig = {
output: 'export',
distDir: 'dist',
basePath: isProd ? '/pikachu' : '',
assetPrefix: isProd ? '/pikachu/' : '',
};
export default nextConfig;