feat: improve archive frontend and open-source docs

This commit is contained in:
YGC
2026-07-02 21:38:42 +08:00
parent 97d29e1135
commit e2e7cf85b1
27 changed files with 922 additions and 223 deletions
+16
View File
@@ -1,6 +1,22 @@
import type { NextConfig } from "next";
const serverApiBaseUrl = (
process.env.SERVER_API_BASE_URL ??
(process.env.NODE_ENV === "production"
? "http://127.0.0.1:8080/api"
: "http://localhost:8080/api")
).replace(/\/+$/, "");
const nextConfig: NextConfig = {
output: "standalone",
async rewrites() {
return [
{
source: "/api/:path*",
destination: `${serverApiBaseUrl}/:path*`,
},
];
},
images: {
unoptimized: true,
remotePatterns: [