mirror of
https://github.com/woodchen-ink/proxy-go.git
synced 2025-07-18 00:21:56 +08:00
chore(build): Configure Next.js export and deployment settings
- Add export configuration for production builds - Set base path for admin deployment - Enable trailing slash for consistent routing - Ignore ESLint during builds - Configure development proxy rewrites
This commit is contained in:
parent
bee914fc61
commit
dd57ec2bd5
@ -1,6 +1,16 @@
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
output: process.env.NODE_ENV === 'development' ? undefined : 'export',
|
||||
basePath: process.env.NODE_ENV === 'development' ? '' : '/admin',
|
||||
trailingSlash: true,
|
||||
eslint: {
|
||||
ignoreDuringBuilds: true,
|
||||
},
|
||||
// 开发环境配置代理
|
||||
async rewrites() {
|
||||
if (process.env.NODE_ENV !== 'development') {
|
||||
return []
|
||||
}
|
||||
return [
|
||||
{
|
||||
source: '/admin/api/:path*',
|
||||
|
Loading…
x
Reference in New Issue
Block a user