mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 16:23:06 +10:00
chore: remove console.log
This commit is contained in:
@ -18,8 +18,6 @@ export const sendResetPassword = async ({ userId }: SendResetPasswordOptions) =>
|
|||||||
|
|
||||||
const assetBaseUrl = process.env.NEXT_PUBLIC_WEBAPP_URL || 'http://localhost:3000';
|
const assetBaseUrl = process.env.NEXT_PUBLIC_WEBAPP_URL || 'http://localhost:3000';
|
||||||
|
|
||||||
console.log({ assetBaseUrl });
|
|
||||||
|
|
||||||
const template = createElement(ResetPasswordTemplate, {
|
const template = createElement(ResetPasswordTemplate, {
|
||||||
assetBaseUrl,
|
assetBaseUrl,
|
||||||
userEmail: user.email,
|
userEmail: user.email,
|
||||||
|
|||||||
@ -37,17 +37,12 @@ export default async function handlerFeatureFlagAll(req: Request) {
|
|||||||
|
|
||||||
const origin = req.headers.get('origin');
|
const origin = req.headers.get('origin');
|
||||||
|
|
||||||
console.log({ origin });
|
|
||||||
|
|
||||||
if (origin) {
|
if (origin) {
|
||||||
if (origin.startsWith(process.env.NEXT_PUBLIC_WEBAPP_URL ?? 'http://localhost:3000')) {
|
if (origin.startsWith(process.env.NEXT_PUBLIC_WEBAPP_URL ?? 'http://localhost:3000')) {
|
||||||
res.headers.set('Access-Control-Allow-Origin', origin);
|
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')) {
|
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);
|
res.headers.set('Access-Control-Allow-Origin', origin);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user