mirror of
https://github.com/tiennm99/pikachu.git
synced 2026-09-10 04:20:03 +00:00
- 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
11 lines
234 B
JavaScript
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;
|