Skip to content

Commit

Permalink
chore: use non-permanent / => /admin redirect so that the browser doe…
Browse files Browse the repository at this point in the history
…sn'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
  • Loading branch information
AlessioGr authored Dec 12, 2024
1 parent 7e3fd5d commit d57cad6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const config = withBundleAnalyzer(
return [
{
destination: '/admin',
permanent: true,
permanent: false,
source: '/',
},
]
Expand Down

0 comments on commit d57cad6

Please sign in to comment.