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 @@
const APP_LOGO = process.env.RODOLF_APP_LOGO;
if (!API_ENDPOINT) {
throw new Error("No api endpoint configured");
console.error("No api endpoint configured");
}
return (
......
......@@ -12,8 +12,8 @@
title,
logoBase64,
}: PropsWithChildren<{
endpoint: string;
endpoint?: string;
title: string;
logoBase64?: string;
}>) {
return (
......@@ -16,8 +16,8 @@
title: string;
logoBase64?: string;
}>) {
return (
<ClientProvider endpoint={endpoint}>
<ClientProvider endpoint={endpoint ?? ""}>
<CustomThemeProvider>
<Paper
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