倍率问题和图片问题调整

This commit is contained in:
andy committed 2026-09-23 13:33:47 +08:00
1 parent f1993eb388
commit 3f29ba716a
20 files changed
+1210 -24

No files matched your search

+24
View File
@@ -6,6 +6,30 @@ const nextConfig: NextConfig = {
// while a dev server is alive must not invalidate the dev server's chunks.
distDir: process.env.NODE_ENV === "development" ? ".next-dev" : ".next",
devIndicators: false,
...(process.env.NODE_ENV === "development"
? {
async rewrites() {
const backend = "http://127.0.0.1:8080";
return [
{
source: "/api/:path*",
destination: `${backend}/api/:path*`
},
{
source: "/uploads/:path*",
destination: `${backend}/uploads/:path*`
},
{
source: "/generated-results/:path*",
destination: `${backend}/generated-results/:path*`
}
];
}
}
: {}),
images: {
unoptimized: true,
remotePatterns: [