feat: implement comprehensive map editing system with advanced geometry tools, replay management, and project session state modules.
Build and Release / release (push) Successful in 55s
Build and Release / release (push) Successful in 55s
This commit is contained in:
@@ -19,34 +19,6 @@ const nextConfig: NextConfig = {
|
||||
],
|
||||
},
|
||||
output: 'standalone',
|
||||
async rewrites() {
|
||||
// Proxy backend API calls through Next.js to avoid browser CORS issues.
|
||||
//
|
||||
// Configure the target via:
|
||||
// - API_PROXY_TARGET (server-side, recommended) e.g. http://localhost:8080
|
||||
// - NEXT_PUBLIC_API_URL_ROOT (fallback)
|
||||
const target =
|
||||
process.env.API_PROXY_TARGET ||
|
||||
process.env.NEXT_PUBLIC_API_URL_ROOT ||
|
||||
"https://history-api.kain.id.vn";
|
||||
|
||||
const prefixes = [
|
||||
"auth",
|
||||
"users",
|
||||
"media",
|
||||
"projects",
|
||||
"submissions",
|
||||
"statistics",
|
||||
"roles",
|
||||
"historian",
|
||||
];
|
||||
return [
|
||||
...prefixes.map((p) => ({
|
||||
source: `/${p}/:path*`,
|
||||
destination: `${target}/${p}/:path*`,
|
||||
})),
|
||||
];
|
||||
},
|
||||
webpack(config) {
|
||||
config.module.rules.push({
|
||||
test: /\.svg$/,
|
||||
|
||||
Reference in New Issue
Block a user