From d57cad632d6aecd62cc0632ef78aa37d48dafcfe Mon Sep 17 00:00:00 2001 From: Alessio Gravili Date: Thu, 12 Dec 2024 14:58:21 -0700 Subject: [PATCH] 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 --- next.config.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/next.config.mjs b/next.config.mjs index 418a13b7d2..0452bd34fa 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -32,7 +32,7 @@ const config = withBundleAnalyzer( return [ { destination: '/admin', - permanent: true, + permanent: false, source: '/', }, ]