diff --git a/server/src/services/mail.service.ts b/server/src/services/mail.service.ts index ff4ee282..4318051d 100644 --- a/server/src/services/mail.service.ts +++ b/server/src/services/mail.service.ts @@ -6,7 +6,7 @@ import SGmail, { MailDataRequired } from '@sendgrid/mail'; const appName = 'BTS Dashboard'; // Replace with a relevant project name const senderName = 'Beat The Streets National'; // Replace with a relevant project sender -const baseUrl = 'http://localhost:3000'; // TODO: figure out better place to put this +const baseUrl = process.env.PUBLIC_URL ?? 'http://localhost:3000'; // TODO: figure out better place to put this // eslint-disable-next-line no-useless-concat SGmail.setApiKey(`${process.env.SENDGRID_API_KEY}`); diff --git a/server/tsconfig.json b/server/tsconfig.json index 7ce8dc31..09d04834 100644 --- a/server/tsconfig.json +++ b/server/tsconfig.json @@ -6,7 +6,7 @@ "lib": ["es2021", "DOM"], "module": "commonjs", "moduleResolution": "Node", - "strict": true, + "strict": false, "noImplicitOverride": true, // Needed for CommonJS modules: markdown-it, fs-extra "allowSyntheticDefaultImports": true, diff --git a/tsconfig.json b/tsconfig.json index a150ffba..8220347f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -29,8 +29,8 @@ // "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */ /* Strict Type-Checking Options */ - "strict": true /* Enable all strict type-checking options. */, - "noImplicitAny": true /* Raise error on expressions and declarations with an implied 'any' type. */, + "strict": false /* Enable all strict type-checking options. */, + "noImplicitAny": false /* Raise error on expressions and declarations with an implied 'any' type. */, // "strictNullChecks": true, /* Enable strict null checks. */ // "strictFunctionTypes": true, /* Enable strict checking of function types. */ // "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */