-
Notifications
You must be signed in to change notification settings - Fork 6
/
nuxt.config.ts
49 lines (48 loc) · 1.06 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
import {defineNuxtConfig} from 'nuxt/config';
// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
ssr: true,
nitro: {
prerender: {
failOnError: false
}
},
css: ['~/assets/tailwind.css'],
modules: [
'@nuxtjs/strapi',
'nuxt-graphql-client',
'@nuxtjs/tailwindcss',
'nuxt-gtag'
],
strapi: {
url: process.env.STRAPI_URL,
prefix: '/api',
version: 'v4',
cookie: {},
cookieName: 'strapi_jwt'
},
gtag: {
id: process.env.GOOGLE_ANALYTICS_ID,
initialConsent: false
},
runtimeConfig: {
public: {
GQL_HOST: process.env.GQL_HOST
}
},
devtools: {enabled: true},
app: {
head: {
htmlAttrs: {
lang: 'en'
},
script: [
{
src: 'https://cmp.osano.com/AzyhULTdPkqmy4aDN/f0e8e901-3feb-47c4-bd04-96df98c75dab/osano.js'
}
],
link: [{rel: 'icon', type: 'image/svg', href: '/safLogoFavicon.svg'}]
},
baseURL: process.env.BASE_URL // baseURL: '/<repository>/' for github or '/' for local
}
});