's'
This commit is contained in:
@@ -5,36 +5,48 @@ const nextConfig = {
|
||||
|
||||
images: {
|
||||
domains: [
|
||||
'dash.cloudflare.com',
|
||||
'www.google.com',
|
||||
'ph-static.imgix.net',
|
||||
'app.leonardo.ai'
|
||||
"dash.cloudflare.com",
|
||||
"www.google.com",
|
||||
"ph-static.imgix.net",
|
||||
"app.leonardo.ai",
|
||||
],
|
||||
remotePatterns: [
|
||||
{
|
||||
protocol: 'https',
|
||||
hostname: '**',
|
||||
protocol: "https",
|
||||
hostname: "**",
|
||||
},
|
||||
],
|
||||
},
|
||||
async rewrites() {
|
||||
return [
|
||||
{
|
||||
source: '/api/auth/:path*',
|
||||
destination: '/api/auth/:path*'
|
||||
source: "/api/auth/:path*",
|
||||
destination: "/api/auth/:path*",
|
||||
},
|
||||
{
|
||||
source: '/auth/:path*',
|
||||
destination: '/auth/:path*'
|
||||
}
|
||||
]
|
||||
source: "/auth/:path*",
|
||||
destination: "/auth/:path*",
|
||||
},
|
||||
];
|
||||
},
|
||||
// Cloudflare Pages configuration
|
||||
experimental: {
|
||||
serverActions: {
|
||||
allowedOrigins: ['localhost', 'navsphere.com','*.hackrobot.cn']
|
||||
}
|
||||
}
|
||||
}
|
||||
allowedOrigins: ["localhost", "navsphere.com", "*.hackrobot.cn"],
|
||||
},
|
||||
},
|
||||
// 加在这句话就够了
|
||||
generateBuildId: async () => {
|
||||
return "v" + new Date().getTime();
|
||||
},
|
||||
headers: async () => [
|
||||
{
|
||||
source: "/:path*",
|
||||
headers: [
|
||||
{ key: "Cache-Control", value: "no-cache, no-store, must-revalidate" },
|
||||
],
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
module.exports = nextConfig
|
||||
module.exports = nextConfig;
|
||||
|
||||
Reference in New Issue
Block a user