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,6 +1,11 @@
|
||||
|
||||
const withTM = require('next-transpile-modules')(['react-timezone-select']);
|
||||
|
||||
// TODO: Revisit this later with getStaticProps in App
|
||||
if (process.env.NEXTAUTH_URL) {
|
||||
process.env.BASE_URL = process.env.NEXTAUTH_URL.replace('/api/auth', '');
|
||||
}
|
||||
|
||||
if ( ! process.env.EMAIL_FROM ) {
|
||||
console.warn('\x1b[33mwarn', '\x1b[0m', 'EMAIL_FROM environment variable is not set, this may indicate mailing is currently disabled. Please refer to the .env.example file.');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user