-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.js
38 lines (35 loc) · 911 Bytes
/
nuxt.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
const isDeployed = (
process.env.NEXTAUTH_URL === 'http://localhost:3000'
|| !process.env.NEXTAUTH_URL
) ? false : true;
const deploymentDomain = process.env.NEXTAUTH_URL || 'http://localhost:3000';
export default defineNuxtConfig({
runtimeConfig: {
nextAuthSecret: process.env.NEXTAUTH_SECRET,
faunaSecret: process.env.FAUNA_SECRET,
mongodbUri: process.env.MONGODB_URI,
telegramToken: process.env.TELEGRAM_TOKEN,
telegramChatId: process.env.TELEGRAM_CHAT_ID,
public: {
isDeployed,
deploymentDomain,
},
},
modules: [
'@sidebase/nuxt-auth'
],
auth: {
provider: {
type: 'authjs',
addDefaultCallbackUrl: true
},
origin: deploymentDomain,
baseUrl: `/api/auth`,
addDefaultCallbackUrl: true,
globalAppMiddleware: {
isEnabled: true,
allow404WithoutAuth: true,
addDefaultCallbackUrl: true
},
}
});