2
0

🐛 Fix 404 error page

Wasn't working because of ssr prop from trpc
This commit is contained in:
Baptiste Arnaud
2023-02-14 15:09:05 +01:00
parent 08e33fbe70
commit eef015e395
8 changed files with 29 additions and 21 deletions

View File

@@ -14,6 +14,15 @@ const nextConfig = withTM({
experimental: {
outputFileTracingRoot: path.join(__dirname, '../../'),
},
async redirects() {
return [
{
source: '/typebots/:typebotId',
destination: '/typebots/:typebotId/edit',
permanent: true,
},
]
},
headers: async () => {
return [
{
@@ -40,6 +49,7 @@ module.exports = process.env.NEXT_PUBLIC_SENTRY_DSN
...nextConfig,
sentry: {
hideSourceMaps: true,
widenClientFileUpload: true,
},
},
sentryWebpackPluginOptions