-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnuxt.config.js
109 lines (109 loc) · 2.42 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
export default {
mode: "spa",
router: {
base: "/"
},
env: {
baseUrl: process.env.NOW_URL || "http://localhost:3000"
},
/*
** Headers of the page
*/
head: {
titleTemplate: `%s - Web Zurich`,
htmlAttrs: {
lang: "en-US"
},
meta: [
{
charset: "utf-8"
},
{
name: "viewport",
content: "width=device-width, initial-scale=1"
},
{
name: "yandex-verification",
content: "5b394792ab19c0bd"
},
{
hid: "description",
name: "description",
content:
"Learn, share and collaborate with your local Web professionals and enthusiasts!"
},
{
hid: "google-site-verification",
name: "google-site-verification",
content: "IVcT2HAuAxv-lQubqO2BqwmRDjl4IFoNMBDGBPyELH0"
},
{
hid: "og:image",
name: "image",
property: "og:image",
content: `${process.env.NOW_URL || "http://localhost:3000"}/icon.png`
},
{ hid: "twitter:site", name: "twitter:site", content: "@webzuerich" },
{
hid: "twitter:creator",
name: "twitter:creator",
content: "@aleksejdix"
},
{ hid: "og:site_name", name: "og:site_name", content: "web zürich" }
],
link: [
{
rel: "icon",
type: "image/x-icon",
href: "/favicon.ico"
},
{
rel: "stylesheet",
href:
"https://fonts.googleapis.com/css?family=Montserrat:400,700,800&display=swap"
}
]
},
/*
** Plugins to load before mounting the App
*/
plugins: ["~/plugins/components", "~/plugins/filters.js"],
buildModules: ["@nuxtjs/tailwindcss", "@nuxtjs/google-analytics"],
modules: [
"@nuxtjs/apollo",
"@nuxtjs/markdownit",
"@nuxtjs/pwa",
"portal-vue/nuxt"
],
googleAnalytics: {
id: "UA-122601504-1"
},
tailwindcss: {
configPath: "~/config/tailwind.config.js",
cssPath: "~/assets/css/tailwind.css"
},
markdownit: {
injected: true
},
workbox: {
publicPath: "/_nuxt/"
},
manifest: {
publicPath: "/_nuxt/"
},
apollo: {
clientConfigs: {
default: {
httpEndpoint: `https://api-eu-central-1.hygraph.com/v2/cjiqbztau0hjj01i2nukb5bjt/master`
}
}
},
pwa: {
meta: {
name: "Web Zurich",
short_name: "Web Zurich",
author: "Aleksej Dix",
description: "Community that matters"
}
}
};