We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c2b1bd commit bd0ed02Copy full SHA for bd0ed02
src/routes/configs.ts
@@ -4,12 +4,12 @@ const parseConfigs = () => {
4
const rawRobots = import.meta.env.VITE_CONFIGS;
5
6
if (!rawRobots) {
7
- throw new Error(
+ console.warn(
8
'Cannot find configs. Please read the README.md for more info'
9
);
10
}
11
12
- return JSON.parse(rawRobots);
+ return JSON.parse(rawRobots ?? {});
13
};
14
15
export const dialConfigs: Record<string, DialConf> = parseConfigs();
0 commit comments