first commit

This commit is contained in:
phattaranun.a committed 2026-05-24 22:55:17 +07:00
commit 2a1854ab08
120 files changed
+11300

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
/** @type {import('next').NextConfig} */
const BACKEND_INTERNAL_URL =
process.env.BACKEND_INTERNAL_URL || "http://localhost:20001";
const STORAGE_INTERNAL_URL =
process.env.STORAGE_INTERNAL_URL || process.env.FILER_INTERNAL_URL || "http://localhost:3103";
const STORAGE_BUCKET_PATH =
process.env.STORAGE_BUCKET_PATH || process.env.FILER_BUCKET_PATH || "/buckets/transit";
const nextConfig = {
reactStrictMode: true,
output: "standalone",
images: {
remotePatterns: [{ protocol: "http", hostname: "**" }, { protocol: "https", hostname: "**" }]
},
async rewrites() {
return [
{
source: "/files/:path*",
destination: `${STORAGE_INTERNAL_URL}${STORAGE_BUCKET_PATH}/:path*`
},
{
source: "/api/:path*",
destination: `${BACKEND_INTERNAL_URL}/api/:path*`
}
];
}
};
export default nextConfig;