/
nuxt.config.js
37 lines (36 loc) · 839 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
import theme from '@nuxt/content-theme-docs'
export default theme({
docs: {
primaryColor: '#33cccc'
},
modules: [
'@nuxtjs/axios',
'@nuxtjs/auth-next'
],
target: 'static', // will allow to host it on Netlify
ssr: false, // will be done as SPA with this
router: {
middleware: ['auth'] // @nuxt/auth module
},
auth: {
redirect: {
callback: "/",
home: "/",
login: "/login",
logout: "/"
},
localStorage: false,
strategies: {
local: false,
auth0: {
domain: process.env.AUTH0_DOMAIN,
clientId: process.env.AUTH0_CLIENT_ID,
scope: ['openid', 'profile', 'offline_access'],
accessType: 'offline',
responseType: 'code',
grantType: 'authorization_code',
codeChallengeMethod: 'S256',
}
},
},
});