chore: remove console.log

This commit is contained in:
Mythie
2023-09-25 10:09:02 +10:00
parent a3674947b8
commit 1f92bffe7d
2 changed files with 0 additions and 7 deletions

View File

@ -18,8 +18,6 @@ export const sendResetPassword = async ({ userId }: SendResetPasswordOptions) =>
const assetBaseUrl = process.env.NEXT_PUBLIC_WEBAPP_URL || 'http://localhost:3000';
console.log({ assetBaseUrl });
const template = createElement(ResetPasswordTemplate, {
assetBaseUrl,
userEmail: user.email,

View File

@ -37,17 +37,12 @@ export default async function handlerFeatureFlagAll(req: Request) {
const origin = req.headers.get('origin');
console.log({ origin });
if (origin) {
if (origin.startsWith(process.env.NEXT_PUBLIC_WEBAPP_URL ?? 'http://localhost:3000')) {
res.headers.set('Access-Control-Allow-Origin', origin);
}
console.log('marketing url', process.env.NEXT_PUBLIC_MARKETING_URL);
if (origin.startsWith(process.env.NEXT_PUBLIC_MARKETING_URL ?? 'http://localhost:3001')) {
console.log('setting marketing origin');
res.headers.set('Access-Control-Allow-Origin', origin);
}
}