migrate frontend

This commit is contained in:
ryan
2026-06-18 18:34:20 +08:00
parent 75140fc3bb
commit 48421c12de
113 changed files with 116 additions and 152 deletions
+7
View File
@@ -9,6 +9,13 @@ const nextConfig: NextConfig = {
experimental: {
},
...(isExport ? { output: 'export' } : {
async redirects() {
return [
{ source: '/openflare', destination: '/', permanent: true },
{ source: '/openflare/:path*', destination: '/:path*', permanent: true },
{ source: '/home', destination: '/', permanent: true },
];
},
async rewrites() {
const backendUrl = process.env.WAVELET_BACKEND_URL || 'http://localhost:3000';
return [