-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.js
90 lines (78 loc) · 2.28 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
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
import nuxtI18nConfig from './lib/nuxt-i18n-config'
import { title, ogMeta } from './lib/meta'
import getContentRoutes from './lib/get-content-routes'
export default {
target: 'server',
loading: false,
server: {
host: '0.0.0.0'
},
publicRuntimeConfig: {
APP_ENV: process.env.APP_ENV || 'development',
APP_DOMAIN: process.env.APP_DOMAIN || 'localhost:3000',
API_URL: process.env.API_URL || 'http://localhost:5001',
infuraProjectId: process.env.INFURA_PROJECT_ID || 'xxx'
},
head: {
htmlAttrs: {
prefix: 'og: http://ogp.me/ns#'
},
title,
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0, initial-scale=1, minimal-ui, shrink-to-fit=no' },
...ogMeta()
],
link: [
{ rel: 'apple-touch-icon', href: '/apple-touch-icon.png', sizes: '180x180' },
{ rel: 'icon', type: 'image/png', href: '/favicon-32x32.png', sizes: '32x32' },
{ rel: 'icon', type: 'image/png', href: '/favicon-16x16.png', sizes: '16x16' },
{ rel: 'manifest', href: '/site.webmanifest' },
{ rel: 'mask-icon', href: '/safari-pinned-tab.svg', color: '#5bbad5' },
{ rel: 'msapplication-TileColor', content: '#da532c' },
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
{ rel: 'stylesheet', href: '/css/fontawesome/css/all.min.css' }
],
script: [
{ src: '/js/csrf.js' },
{ src: 'https://squid.invoice.build/script.js', site: 'QKTOWSHA', defer: true }
]
},
css: [
'~/assets/css/app.css'
],
plugins: [
'~/plugins/axios',
'~/plugins/globals',
'~/plugins/utils',
'~/plugins/breakpoints',
'~/plugins/v-hotkey',
{ src: '~/plugins/eth', ssr: false },
{ src: '~/plugins/v-click-outside', ssr: false }
],
components: [
'~/components/global'
],
modules: [
'@nuxtjs/axios',
'@nuxt/content',
'@nuxtjs/sitemap',
['nuxt-i18n', nuxtI18nConfig]
],
sitemap: {
path: '/sitemap.xml',
hostname: 'https://invoice.build',
cacheTime: 1000 * 60 * 15,
gzip: true,
generate: false,
exclude: [],
routes () {
return getContentRoutes()
}
},
buildModules: [
'@nuxtjs/eslint-module',
'@nuxtjs/tailwindcss'
],
build: {}
}