Skip to content

Commit d57cad6

Browse files
authored
chore: use non-permanent / => /admin redirect so that the browser doesn't cache it for projects that don't redirect (#9948)
When opening payload in our monorepo and then working on a different project that comes with a frontend, it will automatically redirect me from localhost:3000 => localhost:3000/admin, not letting me view the landing page until I clear my browser cache. I'm hoping this will fix it
1 parent 7e3fd5d commit d57cad6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

next.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const config = withBundleAnalyzer(
3232
return [
3333
{
3434
destination: '/admin',
35-
permanent: true,
35+
permanent: false,
3636
source: '/',
3737
},
3838
]

0 commit comments

Comments
 (0)