From 34709cda626cf1bf15e2577d1d36b4df7c559895 Mon Sep 17 00:00:00 2001 From: naporin0624 Date: Thu, 27 Jun 2024 12:07:08 +0000 Subject: [PATCH] chore: add firebase redirect settings for docs --- firebase.json | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 63 insertions(+), 1 deletion(-) diff --git a/firebase.json b/firebase.json index ecb6e5a9..bebb7998 100644 --- a/firebase.json +++ b/firebase.json @@ -1,6 +1,68 @@ { "hosting": { "public": "storybook-static", - "ignore": ["firebase.json", "**/.*", "**/node_modules/**"] + "ignore": ["firebase.json", "**/.*", "**/node_modules/**"], + "redirects": [ + { + "source": "/@charcoal-ui/styled/quickstart/", + "destination": "/?path=/docs/styled-readme--docs", + "type": 301 + }, + { + "source": "/@charcoal-ui/react/quickstart/", + "destination": "/?path=/docs/react-readme--docs", + "type": 301 + }, + { + "source": "/@charcoal-ui/react/ssr/", + "destination": "/?path=/docs/react-ssr-guide--docs", + "type": 301 + }, + { + "source": "/@charcoal-ui/icons/quickstart/", + "destination": "/?path=/docs/icons-readme--docs", + "type": 301 + }, + { + "source": "/@charcoal-ui/icons/react/", + "destination": "/?path=/docs/icons-readme--docs#react-と組み合わせて使う", + "type": 301 + }, + { + "source": "/@charcoal-ui/icons/extend/", + "destination": "/?path=/docs/icons-custom--docs", + "type": 301 + }, + { + "source": "/@charcoal-ui/icons/ssr/", + "destination": "/?path=/docs/icons-ssr-guide--docs", + "type": 301 + }, + { + "source": "/@charcoal-ui/tailwind-config/quickstart/", + "destination": "/?path=/docs/tailwind-config-readme--docs", + "type": 301 + }, + { + "source": "/@charcoal-ui/tailwind-config/customize/", + "destination": "/?path=/docs/tailwind-config-custom--docs", + "type": 301 + }, + { + "source": "/@charcoal-ui/tailwind-diff/quickstart/", + "destination": "/?path=/docs/tailwind-diff-readme--docs", + "type": 301 + }, + { + "source": "/@charcoal-ui/foundation/quickstart/", + "destination": "/?path=/docs/foundation-readme--docs", + "type": 301 + }, + { + "source": "/@charcoal-ui/theme/quickstart/", + "destination": "/?path=/docs/theme-readme--docs", + "type": 301 + } + ] } }