This commit is contained in:
eric
2025-11-13 05:05:53 +08:00
parent cbdc65f56e
commit 891af61146
691 changed files with 83952 additions and 0 deletions

40
next.config.js Normal file
View File

@@ -0,0 +1,40 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
// Docker 部署支持
output: 'standalone',
images: {
domains: [
'dash.cloudflare.com',
'www.google.com',
'ph-static.imgix.net',
'app.leonardo.ai'
],
remotePatterns: [
{
protocol: 'https',
hostname: '**',
},
],
},
async rewrites() {
return [
{
source: '/api/auth/:path*',
destination: '/api/auth/:path*'
},
{
source: '/auth/:path*',
destination: '/auth/:path*'
}
]
},
// Cloudflare Pages configuration
experimental: {
serverActions: {
allowedOrigins: ['localhost', 'navsphere.com']
}
}
}
module.exports = nextConfig