optimize(projects): optimize code
This commit is contained in:
parent
207d6eb6ec
commit
38eeb678f3
@ -11,7 +11,7 @@ export function createServiceConfig(env: Env.ImportMeta) {
|
|||||||
let other = {} as Record<App.Service.OtherBaseURLKey, string>;
|
let other = {} as Record<App.Service.OtherBaseURLKey, string>;
|
||||||
try {
|
try {
|
||||||
other = json5.parse(VITE_OTHER_SERVICE_BASE_URL);
|
other = json5.parse(VITE_OTHER_SERVICE_BASE_URL);
|
||||||
} catch (error) {
|
} catch {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.error('VITE_OTHER_SERVICE_BASE_URL is not a valid json5 string');
|
console.error('VITE_OTHER_SERVICE_BASE_URL is not a valid json5 string');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user