diff --git a/client/next.config.ts b/client/next.config.ts index 5af7210..a0c5007 100644 --- a/client/next.config.ts +++ b/client/next.config.ts @@ -2,11 +2,12 @@ import type { NextConfig } from "next"; const nextConfig: NextConfig = { output: 'standalone', - async rewrites() { + async redirects() { return [ { source: '/l/:slug', - destination: `${process.env.INTERNAL_BACKEND_URL || 'http://localhost:4001'}/l/:slug` + destination: '/api/l/:slug', + permanent: false } ]; }