feat: add next.config rewrites for shortlink routing and show domain in UI

This commit is contained in:
Mohan Ki
2026-07-27 15:57:40 +05:30
parent c6a0a13616
commit 01c74fb29d
4 changed files with 17 additions and 4 deletions
+8 -1
View File
@@ -1,8 +1,15 @@
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
output: 'standalone',
async rewrites() {
return [
{
source: '/l/:slug',
destination: `${process.env.INTERNAL_BACKEND_URL || 'http://localhost:4001'}/l/:slug`
}
];
}
};
export default nextConfig;