-
Notifications
You must be signed in to change notification settings - Fork 1
/
nuxt.config.js
131 lines (117 loc) · 2.9 KB
/
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
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
export default {
// Global page headers: https://go.nuxtjs.dev/config-head
head: {
title: 'Laddboxkillarna',
htmlAttrs: {
lang: 'en',
},
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ name: "facebook-domain-verification", content: "qtaync5qm7bh3c6gkiq95pp2b8kjrd" },
],
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.png' }],
__dangerouslyDisableSanitizers: ['script'],
script: [
// {
// hid: 'gtm-script1',
// src: 'https://www.googletagmanager.com/ns.html?id=GTM-WDBBFCC',
// defer: true,
// },
{
hid: 'gtm-script1',
innerHTML: `
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer', 'GTM-WDBBFCC')
`,
type: 'text/javascript',
charset: 'utf-8',
},
],
},
components: true,
ssr: false,
target: 'static',
// Axios module configuration: https://go.nuxtjs.dev/config-axios
axios: {
// API on server or locally
//baseUrl: process.env.BASE_URL || 'https://test.laddboxkillarna.se',
baseURL:
process.env.NODE_ENV === 'production'
? 'https://www.laddboxkillarna.se/api'
: 'http://localhost:5050',
},
env: {
// env fallback axios
},
build: {},
buildModules: ['@nuxtjs/google-fonts', '@nuxtjs/style-resources'],
modules: [
'@nuxtjs/axios',
'@nuxtjs/style-resources',
[
'nuxt-fontawesome',
{
component: 'fa',
imports: [
{
set: '@fortawesome/free-solid-svg-icons',
icons: ['fas'],
},
],
},
],
],
/* gtm: {
id: process.env.GTM_ID,
enabled: true,
autoInit: true,
pageTracking: true,
},
publicRuntimeConfig: {
gtm: {
id: process.env.GTM_ID,
},
},
*/
// googleAnalytics: {
// id: process.env.GOOGLE_ANALYTICS_ID,
// autoTracking: {
// screenview: true
// }
// },
// publicRuntimeConfig: {
// googleAnalytics: {
// id: process.env.GOOGLE_ANALYTICS_ID
// }
// },
googleFonts: {
download: true,
display: 'swap',
families: {
Roboto: {
wght: [100, 200, 300, 400, 500, 700, 900],
ital: [100, 300, 400, 500, 700],
},
Saira: {
wght: [100, 300, 400, 500, 700, 900],
ital: [100, 300, 400, 500, 700],
},
},
},
css: [
'vant/lib/index.css',
//'~assets/css/main.scss'
],
plugins: ['@/plugins/vant'],
styleResources: {
scss: ['~/assets/css/*.scss'],
},
server: {
port: 5000,
host: '0.0.0.0',
},
}