From 011a178550640f9e2cee89ed80e832e73a53480c Mon Sep 17 00:00:00 2001 From: oleole39 <59071673+oleole39@users.noreply.github.com> Date: Wed, 27 Nov 2024 04:57:40 +0100 Subject: [PATCH] fix build 6 --- scripts/build | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/build b/scripts/build index 8bde7b4..0079db7 100644 --- a/scripts/build +++ b/scripts/build @@ -60,10 +60,10 @@ pushd "$build_folder" sed -i 's/jsoncrack.com/__YNH_DOMAIN____YNH_SUBDIR_PATH__/g' "./src/constants/seo.ts" sed -i 's/"\/manifest.json"/"\/__YNH_SUBDIR_PATH__\/manifest.json"/g' "./src/constants/seo.ts" sed -i 's/"\/favicon.ico"/"\/__YNH_SUBDIR_PATH__\/favicon.ico"/g' "./src/constants/seo.ts" - sed -i 's/Link href="\/"/Link href="\/"/g' "./src/layout/JsonCrackLogo.tsx" - sed -i 's/"\/assets/"__YNH_SUBDIR_PATH__\/assets/g' "./src/containers/Editor/components/LiveEditor.tsx" - sed -i 's/"\/assets/"__YNH_SUBDIR_PATH__\/assets/g' "./src/containers/Editor/components/views/GraphView/index.tsx" - sed -i 's/"\/assets/"__YNH_SUBDIR_PATH__\/assets/g' "./src/layout/JsonCrackLogo.tsx" + sed -i 's/Link href="\/"/Link href="\/editor"/g' "./src/layout/JsonCrackLogo.tsx" + sed -i 's/"\/assets/"\/__YNH_SUBDIR_PATH__\/assets/g' "./src/containers/Editor/components/LiveEditor.tsx" + sed -i 's/"\/assets/"\/__YNH_SUBDIR_PATH__\/assets/g' "./src/containers/Editor/components/views/GraphView/index.tsx" + sed -i 's/"\/assets/"\/__YNH_SUBDIR_PATH__\/assets/g' "./src/layout/JsonCrackLogo.tsx" # Adapt text for YNH context sed -i 's/jsoncrack.com/JSON_graph/g' "./src/containers/Modals/DownloadModal/index.tsx" # Default download filename