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 4431375 commit 8c2e1d1Copy full SHA for 8c2e1d1
components/server/src/config.ts
@@ -217,7 +217,11 @@ export namespace ConfigFile {
217
);
218
let stripeSettings: { publishableKey: string; secretKey: string } | undefined;
219
if (config.enablePayment && config.stripeSettingsFile) {
220
- stripeSettings = JSON.parse(fs.readFileSync(filePathTelepresenceAware(config.stripeSettingsFile), "utf-8"));
+ try {
221
+ stripeSettings = JSON.parse(fs.readFileSync(filePathTelepresenceAware(config.stripeSettingsFile), "utf-8"));
222
+ } catch (error) {
223
+ console.error("Could not load Stripe settings", error);
224
+ }
225
}
226
let license = config.license;
227
const licenseFile = config.licenseFile;
0 commit comments