🐛 Fix 404 error page
Wasn't working because of ssr prop from trpc
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user