-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnuxt.config.ts
72 lines (69 loc) · 1.79 KB
/
nuxt.config.ts
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
import { fail } from 'assert'
import { Configuration } from '@nuxt/types'
import dotenv from 'dotenv'
dotenv.config()
const config: Configuration = {
mode: 'spa',
srcDir: 'src/',
buildModules: [
'@nuxt/typescript-build',
'@nuxtjs/axios',
'@nuxtjs/dotenv',
'@nuxtjs/vuetify',
'@nuxtjs/apollo',
'@nuxtjs/auth'
],
head: {
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: 'Sample Serverless EC Application' },
]
},
styleResources: {
scss: [
'~/assets/scss/style.scss'
]
},
dotenv: {
path: './'
},
plugins: [],
vuetify: {
treeShake: {
directives: [
'Resize'
]
}
},
apollo: {
authenticationType: '', // Set empty string to prevent 'Bearer' prefixing
clientConfigs: {
default: '~/apollo/config.ts'
}
},
auth: {
strategies: {
auth0: {
domain: process.env.AUTH0_DOMAIN,
client_id: process.env.AUTH0_CLIENT_ID,
scope: [ 'openid', 'profile' ],
response_type: 'id_token token',
token_key: 'id_token'
}
},
redirect: {
login: '/',
logout: '/',
callback: '/callback',
home: '/main'
}
},
env: {
APPSYNC_GRAPHQL_ENDPOINT: process.env.APPSYNC_GRAPHQL_ENDPOINT || fail('Missing required environment variable APPSYNC_GRAPHQL_ENDPOINT'),
APPSYNC_REGION: process.env.APPSYNC_REGION || fail('Missing required environment variable APPSYNC_REGION'),
AUTH0_DOMAIN: process.env.AUTH0_DOMAIN || fail('Missing required environment variable AUTH0_DOMAIN'),
AUTH0_CLIENT_ID: process.env.AUTH0_CLIENT_ID || fail('Missing required environment variable AUTH0_CLIENT_ID')
}
}
export default config