's'
This commit is contained in:
@@ -2,39 +2,51 @@
|
|||||||
const nextConfig = {
|
const nextConfig = {
|
||||||
// Docker 部署支持
|
// Docker 部署支持
|
||||||
// output: 'standalone',
|
// output: 'standalone',
|
||||||
|
|
||||||
images: {
|
images: {
|
||||||
domains: [
|
domains: [
|
||||||
'dash.cloudflare.com',
|
"dash.cloudflare.com",
|
||||||
'www.google.com',
|
"www.google.com",
|
||||||
'ph-static.imgix.net',
|
"ph-static.imgix.net",
|
||||||
'app.leonardo.ai'
|
"app.leonardo.ai",
|
||||||
],
|
],
|
||||||
remotePatterns: [
|
remotePatterns: [
|
||||||
{
|
{
|
||||||
protocol: 'https',
|
protocol: "https",
|
||||||
hostname: '**',
|
hostname: "**",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
async rewrites() {
|
async rewrites() {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
source: '/api/auth/:path*',
|
source: "/api/auth/:path*",
|
||||||
destination: '/api/auth/:path*'
|
destination: "/api/auth/:path*",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
source: '/auth/:path*',
|
source: "/auth/:path*",
|
||||||
destination: '/auth/:path*'
|
destination: "/auth/:path*",
|
||||||
}
|
},
|
||||||
]
|
];
|
||||||
},
|
},
|
||||||
// Cloudflare Pages configuration
|
// Cloudflare Pages configuration
|
||||||
experimental: {
|
experimental: {
|
||||||
serverActions: {
|
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