refactor: remove unused storage environment variables and update file destination in rewrites

This commit is contained in:
phattaranun.a committed 2026-05-25 00:56:05 +07:00
1 parent 2a1854ab08
commit 3238747462
2 files changed
+1 -9

No files matched your search

+1 -5
View File
@@ -1,10 +1,6 @@
/** @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,
@@ -16,7 +12,7 @@ const nextConfig = {
return [
{
source: "/files/:path*",
destination: `${STORAGE_INTERNAL_URL}${STORAGE_BUCKET_PATH}/:path*`
destination: `${BACKEND_INTERNAL_URL}/files/:path*`
},
{
source: "/api/:path*",