Use NEXTAUTH_URL to define the BASE_URL, then use that in invite email
This commit is contained in:
1 parent
5d3e39ea6e
commit
7df41b519f
3 files changed
+8
-3
No files matched your search
+1
-1
@@ -30,7 +30,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
|
||||
}
|
||||
});
|
||||
|
||||
return res.status(201).setHeader('Location', 'https://calendso.alexvanandel.com/api/teams/1').send(null);
|
||||
return res.status(201).setHeader('Location', process.env.BASE_URL + '/api/teams/1').send(null);
|
||||
}
|
||||
|
||||
res.status(404).send(null);
|
||||
|
||||
Reference in new issue
Block a user