-
Notifications
You must be signed in to change notification settings - Fork 3
/
caddy.config.ts
118 lines (116 loc) · 2.86 KB
/
caddy.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
113
114
115
116
117
118
import { Configuration } from "@nuxt/types";
const config: Configuration = {
mode: "universal",
generate: {
dir: "public"
},
head: {
title: "Speakup Developers",
meta: [
{ charset: "utf-8" },
{ name: "viewport", content: "width=device-width, initial-scale=1" },
{
hid: "description",
name: "description",
content: "Developer API platform by Speakup"
}
],
link: [
{ rel: "mask-icon", color: "#673ab7", href: "/safari-pinned-tab.svg" },
{
rel: "apple-touch-icon",
sizes: "76x76",
href: "/apple-touch-icon.png"
},
{
rel: "icon",
type: "image/png",
sizes: "32x32",
href: "/favicon-32x32.png"
},
{
rel: "icon",
type: "image/png",
sizes: "16x16",
href: "/favicon-16x16.png"
},
{
rel: "stylesheet",
href:
"https://cdnjs.cloudflare.com/ajax/libs/balloon-css/1.0.3/balloon.min.css"
},
{
rel: "stylesheet",
href: "https://fonts.googleapis.com/css?family=Lato:400,700&display=swap"
}
],
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-beta.oswaldlabs.com/v1/agastya/load/speakup-staart-3d14a.js",
async: true
}
]
},
loading: { color: "#492257" },
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-16"
}
]
],
buildModules: ["@nuxt/typescript-build"],
axios: {
baseURL: "@{{ .Env.AXIOS_BASE_URL }}"
},
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;