-
Notifications
You must be signed in to change notification settings - Fork 10
/
nuxt.config.js
executable file
·58 lines (51 loc) · 1.35 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
export default {
// Global page headers
head: {
title: "Movie Night",
htmlAttrs: {
lang: "en"
},
meta: [
{ charset: "utf-8" },
{ name: "viewport", content: "width=device-width, initial-scale=1" },
{ hid: "description", name: "description", content: "" }
],
link: [
{ rel: "icon", type: "image/x-icon", href: "/favicon.ico" },
{ rel: "preconnect", href: "https://fonts.gstatic.com" },
{
rel: "stylesheet",
href:
"https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap"
}
]
},
// Global CSS
css: [
"~/assets/css/global.scss",
"@mdi/font/css/materialdesignicons.min.css"
],
env: {
SERVER_URL: process.env.SERVER_URL || "http://localhost:5300"
},
// Plugins to run before rendering page
plugins: [
{ src: "~/plugins/vue-plyr", mode: "client" },
{ src: "~/plugins/srt-webvtt", mode: "client" },
{ src: "~/plugins/socket-io", mode: "client" },
{ src: "~/plugins/ping", mode: "client" }
],
components: true,
modules: ["@nuxtjs/axios", "nuxt-clipboard"],
axios: {
// baseURL: "https://movie-night-cris.herokuapp.com/" // Used as fallback if no runtime config is provided
},
// Build Configuration
build: {},
server: {
host: "0.0.0.0"
},
generate: {
fallback: true
}
};