perf(struct): perf

This commit is contained in:
2026-03-10 15:41:48 +08:00
parent 4635de6a53
commit 77542cd49e
170 changed files with 34 additions and 38354 deletions

View File

@@ -1,15 +1,5 @@
import type { NextConfig } from "next"
const subList: { source: string; url: string }[] = [
{
source: "/image",
url: "http://localhost:5532",
},
{
source: "/video",
url: "http://localhost:5533",
},
]
import { subConfigList } from "./components/layout/common"
const nextConfig: NextConfig = {
/* config options here */
@@ -20,13 +10,13 @@ const nextConfig: NextConfig = {
| undefined,
async rewrites() {
// 应用代理baseAppProxy
const repoProxy = subList.map(({ source, url }) => {
const repoProxy = subConfigList.map(({ source, url }) => {
return {
source,
destination: `${url}${source}`,
}
})
const repoPathProxy = subList.map(({ source, url }) => {
const repoPathProxy = subConfigList.map(({ source, url }) => {
return {
source: `${source}/:path*`,
destination: `${url}${source}/:path*`,