-
Notifications
You must be signed in to change notification settings - Fork 3
/
nuxt.config.ts
112 lines (110 loc) · 2.68 KB
/
nuxt.config.ts
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
import { Configuration } from "@nuxt/types";
const config: Configuration = {
mode: "universal",
generate: {
dir: "public"
},
head: {
title: "Oswald Labs Platform",
meta: [
{ charset: "utf-8" },
{ name: "viewport", content: "width=device-width, initial-scale=1" },
{
hid: "description",
name: "description",
content: "Oswald Labs Platform"
}
],
link: [
{
rel: "icon",
type: "image/png",
href: "https://oswaldlabs.com/images/pwa/favicon-32x32.png"
},
{
rel: "stylesheet",
href:
"https://cdnjs.cloudflare.com/ajax/libs/balloon-css/1.0.3/balloon.min.css"
},
{
rel: "stylesheet",
href: "https://use.typekit.net/mov5itj.css"
}
],
script: [
{
type: "text/javascript",
src:
"https://polyfill.io/v3/polyfill.min.js?features=es5%2Ces6%2Ces7%2CrequestIdleCallback%2CBlob%2CIntersectionObserver%2CHTMLPictureElement%2CIntersectionObserverEntry%2CMutationObserver%2Cfetch%2ClocalStorage%2CPromise%2CPromise.prototype.finally"
},
{
type: "text/javascript",
src: "https://public-cdn.oswaldlabs.com/focus-visible.js",
async: true
},
{
type: "text/javascript",
src: "https://platform.oswaldlabs.com/_/agastya-admin.js",
async: true
}
]
},
loading: { color: "#3867d6" },
css: [],
plugins: [
"~/plugins/axios",
{ src: "~/plugins/vue-notification", ssr: false },
"~/plugins/vue-timeago",
"~/plugins/meta-ctrl-enter",
"~/plugins/filters",
{ src: "~/plugins/vuex-persist", ssr: false }
],
modules: [
"@nuxtjs/dotenv",
"@nuxtjs/axios",
"@nuxtjs/pwa",
"@nuxtjs/markdownit",
"@nuxtjs/sitemap",
"@bazzite/nuxt-netlify",
[
"@nuxtjs/google-analytics",
{
id: "UA-79176349-10"
}
],
"~/modules/ts-fix.ts"
],
buildModules: ["@nuxt/typescript-build"],
axios: {
baseURL:
process.env.NODE_ENV === "production"
? "https://platform-beta.oswaldlabs.com/v1"
: "http://localhost/v1"
},
sitemap: {
hostname: "https://admin.oswaldlabs.com"
},
scrollBehavior() {
return { x: 0, y: 0 };
},
build: {
extend(config, ctx) {
if (ctx.isDev && ctx.isClient && config && config.module) {
config.module.rules.push({
enforce: "pre",
test: /\.(js|vue)$/,
loader: "eslint-loader",
exclude: /(node_modules)/,
options: {
fix: true
}
});
}
}
},
typescript: {
typeCheck: true,
ignoreNotFoundWarnings: true
}
};
export default config;