Spaces:
Running
Running
Add redirect from /editor to main page
Browse files- next.config.ts +10 -0
next.config.ts
CHANGED
|
@@ -8,6 +8,16 @@ const nextConfig: NextConfig = {
|
|
| 8 |
serverRuntimeConfig: {
|
| 9 |
bodySizeLimit: '50mb',
|
| 10 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
};
|
| 12 |
|
| 13 |
export default nextConfig;
|
|
|
|
| 8 |
serverRuntimeConfig: {
|
| 9 |
bodySizeLimit: '50mb',
|
| 10 |
},
|
| 11 |
+
// Redirect /editor to main page
|
| 12 |
+
async redirects() {
|
| 13 |
+
return [
|
| 14 |
+
{
|
| 15 |
+
source: '/editor',
|
| 16 |
+
destination: '/',
|
| 17 |
+
permanent: true,
|
| 18 |
+
},
|
| 19 |
+
];
|
| 20 |
+
},
|
| 21 |
};
|
| 22 |
|
| 23 |
export default nextConfig;
|