This repository was archived by the owner on Jan 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathnuxt.config.js
More file actions
91 lines (91 loc) · 2.35 KB
/
Copy pathnuxt.config.js
File metadata and controls
91 lines (91 loc) · 2.35 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
module.exports = {
mode: "universal",
head: {
title: "Crash Team Racing Draft",
meta: [
{
property: "og:title",
content: "Crash Team Racing Draft"
},
{ charset: "utf-8" },
{ name: "viewport", content: "width=device-width, initial-scale=1" },
{
hid: "og:description",
name: "og:description",
content:
"Crash Team Racing Draft is a website which allows you to easily create CTR Draft between two teams."
},
{
hid: "description",
name: "description",
content:
"Crash Team Racing Draft is a website which allows you to easily create CTR Draft between two teams."
},
{
property: "og:image",
content: "/favicon.ico"
}
],
link: [{ rel: "icon", type: "image/x-icon", href: "/favicon.ico" }]
},
loading: { color: "#fff" },
css: ["@/assets/css/main.css", "@/assets/css/main.scss"],
plugins: [
{ src: "~/plugins/socket.client.js" },
{ src: "~/plugins/owl.js", ssr: false },
{ src: "~/plugins/sounds.js", ssr: false },
{ src: "~/plugins/i18n.js" }
],
buildModules: [],
modules: ["@nuxtjs/pwa", "@nuxtjs/axios", "@nuxtjs/auth"],
build: {
extend(config, ctx) {
config.module.rules.push({
test: /\.(ogg|mp3|wav|mpe?g)$/i,
loader: "file-loader",
options: {
name: "[path][name].[ext]"
}
});
}
},
axios: {
baseURL: "https://ctr-api.herokuapp.com/api"
},
auth: {
strategies: {
local: {
endpoints: {
login: {
url: "/v1/login",
method: "post",
propertyName: false
},
user: { url: "/v1/user", method: "get", propertyName: false },
logout: false
},
tokenRequired: true,
tokenType: "bearer",
globalToken: true,
autoFetchUser: false
}
}
},
pwa: {
meta: {
title: "CTR Draft",
author: "DevLab"
},
manifest: {
name: "Crash Team Racing Draft",
short_name: "CTR Draft",
lang: "en",
background_color: "white",
categories: ["games", "entertainment"],
description:
"Crash Team Racing Draft is a website which allows you to easily create CTR Draft between two teams.",
display: "fullscreen",
orientation: "portrait"
}
}
};