From 646bc597110e2b40a525567c65a904d42c5d2323 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Rialland?= Date: Thu, 22 Jun 2023 17:52:11 +0200 Subject: [PATCH] Fix storybook in prod --- site/netlify.base.toml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/site/netlify.base.toml b/site/netlify.base.toml index 38a6f92e0..b8ad4e2a8 100644 --- a/site/netlify.base.toml +++ b/site/netlify.base.toml @@ -268,8 +268,9 @@ Content-Security-Policy = "default-src 'self' mon-entreprise.fr; style-src 'self [[redirects]] from = ":SITE_FR/dev/storybook" - to = "/dev/storybook/index.html" - status = 200 + to = ":SITE_FR/dev/storybook/index.html" + status = 301 + force = true [[redirects]] from = ":SITE_FR/*" @@ -292,8 +293,9 @@ Content-Security-Policy = "default-src 'self' mon-entreprise.fr; style-src 'self [[redirects]] from = ":SITE_EN/dev/storybook" - to = "/dev/storybook/index.html" - status = 200 + to = ":SITE_EN/dev/storybook/index.html" + status = 301 + force = true [[redirects]] from = ":SITE_EN/*"