Skip to content
Snippets Groups Projects
Commit b22365fca6cc authored by Arnaud Vergnet's avatar Arnaud Vergnet :sun_with_face:
Browse files

chore(frontend): do not require api endpoint on build

parent f7bd8e9c9153
No related branches found
No related tags found
1 merge request!47feat(frontend): Allow specifying customizations using env variables
Pipeline #231608 passed
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
const APP_LOGO = process.env.RODOLF_APP_LOGO; const APP_LOGO = process.env.RODOLF_APP_LOGO;
if (!API_ENDPOINT) { if (!API_ENDPOINT) {
throw new Error("No api endpoint configured"); console.error("No api endpoint configured");
} }
return ( return (
......
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
title, title,
logoBase64, logoBase64,
}: PropsWithChildren<{ }: PropsWithChildren<{
endpoint: string; endpoint?: string;
title: string; title: string;
logoBase64?: string; logoBase64?: string;
}>) { }>) {
return ( return (
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
title: string; title: string;
logoBase64?: string; logoBase64?: string;
}>) { }>) {
return ( return (
<ClientProvider endpoint={endpoint}> <ClientProvider endpoint={endpoint ?? ""}>
<CustomThemeProvider> <CustomThemeProvider>
<Paper <Paper
elevation={0} elevation={0}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment