refactor: serve static frontend with Go APIs

This commit is contained in:
brother7 committed 2026-08-16 20:47:45 +08:00
1 parent 763d2f0648
commit b14b4fced7
101 files changed
+963 -3928

No files matched your search

+2 -5
View File
@@ -1,16 +1,13 @@
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
output: "export",
// Keep dev artifacts separate from production builds. Running `next build`
// 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,
experimental: {
serverActions: {
bodySizeLimit: "12mb"
}
},
images: {
unoptimized: true,
remotePatterns: [
{ protocol: "https", hostname: "**" },
{ protocol: "http", hostname: "127.0.0.1" },