From f1c10fee0b214dabc90a94eac6d24350511fe35a Mon Sep 17 00:00:00 2001 From: Tobias Merkle Date: Thu, 14 Aug 2025 16:53:57 -0400 Subject: [PATCH] implement basename option 1 --- hyperdrive/packages/app-store/public-ui/src/App.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/hyperdrive/packages/app-store/public-ui/src/App.tsx b/hyperdrive/packages/app-store/public-ui/src/App.tsx index 8518b3a6f..6725be893 100644 --- a/hyperdrive/packages/app-store/public-ui/src/App.tsx +++ b/hyperdrive/packages/app-store/public-ui/src/App.tsx @@ -10,9 +10,17 @@ const BASE_URL = import.meta.env.BASE_URL; if (window.our) window.our.process = BASE_URL?.replace("/", ""); function App() { + const getBasename = () => { + const path = window.location.pathname; + if (path.startsWith('/main:app-store:sys/public')) { + return '/main:app-store:sys/public'; + } + return '/'; + }; + return (
- + } />