diff --git a/Taskfile.yaml b/Taskfile.yaml index b9dfae1d8..44a4c35da 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -39,7 +39,7 @@ tasks: ;; "vision") - URL_SUFFIX="" + URL_SUFFIX="-vision" ;; *) diff --git a/lib/app-setup/root.tsx b/lib/app-setup/root.tsx index ac6bd362b..148dd3272 100644 --- a/lib/app-setup/root.tsx +++ b/lib/app-setup/root.tsx @@ -30,6 +30,7 @@ import styleZenerSelect from '@oshq/react-select/index.css'; import stylesUrl from '~/design-system/index.css'; import rcss from 'react-highlightjs-logs/dist/index.css'; import { isDev } from '../client/helpers/log'; +import { getClientEnv, getServerEnv } from '../configs/base-url.cjs'; export const links = () => [ { rel: 'stylesheet', href: stylesUrl }, @@ -156,7 +157,7 @@ const Root = ({ }: { Wrapper: (prop: { children: ReactNode }) => JSX.Element; }) => { - const { NODE_ENV, DEVELOPER, URL_SUFFIX, BASE_URL } = useLoaderData(); + const env = useLoaderData(); return ( @@ -184,15 +185,7 @@ const Root = ({