-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnuxt.config.js
More file actions
121 lines (110 loc) · 3.14 KB
/
nuxt.config.js
File metadata and controls
121 lines (110 loc) · 3.14 KB
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
import redirectSSL from "redirect-ssl";
export default {
// Disable server-side rendering (https://go.nuxtjs.dev/ssr-mode)
//mode: "universal",
// Global page headers (https://go.nuxtjs.dev/config-head)
head: {
title: "Open Network | Knowledge Endpoint",
meta: [
{ charset: "utf-8" },
{ name: "viewport", content: "width=device-width, initial-scale=1" },
{
hid: "description",
name: "description",
content: process.env.npm_package_description
},
{
hid: "og:title",
name: "og:title",
content: "Open Network | Knowledge Endpoint"
},
{
hid: "og:url",
name: "og:url",
content: process.env.BASE_URL || "http://localhost:300"
},
{
hid: "og:description",
name: "og:description",
content: process.env.npm_package_description
},
{
hid: "og:image",
name: "og:image",
content:
"https://opntwk-project-images.s3-eu-west-1.amazonaws.com/meta_image.png"
}
],
link: [{ rel: "icon", type: "image/x-icon", href: "/favicon.ico" }],
script: [
{
src: "https://kit.fontawesome.com/6f67b3e9f1.js"
}
]
},
// Global CSS (https://go.nuxtjs.dev/config-css)
css: ["~assets/css/tailwind.css", "@/assets/css/_index.scss"],
// Plugins to run before rendering page (https://go.nuxtjs.dev/config-plugins)
plugins: [
{ src: "~/plugins/vuelidate" },
{ src: "~/plugins/filters" },
{ src: "~/plugins/integrations" },
{ src: "~/plugins/tooltip" },
{ src: "~/plugins/toasted", ssr: false },
{ src: "~/plugins/paginate", ssr: false },
{ src: "~/plugins/form_wizard" },
{ src: "~/plugins/vue-instantsearch" }
],
// Auto import components (https://go.nuxtjs.dev/config-components)
components: true,
// Modules for dev and build (recommended) (https://go.nuxtjs.dev/config-modules)
buildModules: [
// https://go.nuxtjs.dev/vuetify
"@nuxtjs/tailwindcss",
[
"@nuxtjs/google-analytics",
{
id: process.env.GOOGLE_ANALYTICS_UA_ID
}
]
],
googleAnalytics: {
id: process.env.GOOGLE_ANALYTICS_UA_ID
},
// Defaults options
tailwindcss: {
cssPath: "~/assets/css/tailwind.css",
configPath: "tailwind.config.js",
exposeConfig: false,
config: {}
},
// Modules (https://go.nuxtjs.dev/config-modules)
modules: ["@nuxtjs/axios", "nuxt-webfontloader", "@nuxtjs/svg"],
webfontloader: {
google: {
families: [
"Hind:400,400italic,500,500italic,700,700italic",
"Poppins:400,400italic,500,500italic,600,600italic,700,700italic",
"Ubuntu:400,500"
]
}
},
/**
* Axios module configuration
*/
axios: {
baseURL: process.env.BASE_URL || "http://localhost:3000"
},
// Server Middleware
serverMiddleware: [
"~/server/routes/index.js",
redirectSSL.create({
enabled: process.env.NODE_ENV === "production"
}),
{ path: "/", handle: "~/server/routes/swagger.js" }
],
// Build Configuration (https://go.nuxtjs.dev/config-build)
build: {
transpile: ["vue-instantsearch", "instantsearch.js/es"]
}
};