This repository has been archived by the owner on Apr 19, 2023. It is now read-only.
forked from kodadot/nft-gallery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.js
176 lines (163 loc) · 4.44 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
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
export default {
server: {
port: 9000 // default: 3000
},
// Disable server-side rendering: https://go.nuxtjs.dev/ssr-mode
ssr: false,
// Target: https://go.nuxtjs.dev/config-target
target: 'static',
// Global page headers: https://go.nuxtjs.dev/config-head
head: {
title: 'KodaDot - Polkadot / Kusama NFT Explorer',
htmlAttrs: {
lang: 'en'
},
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: '' },
{ name: 'format-detection', content: 'telephone=no' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
]
},
// loading: '~/components/Loading.vue',
// Global CSS: https://go.nuxtjs.dev/config-css
css: [
'styles/index.scss'
],
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
plugins: [
'~/plugins/filters',
'~/plugins/globalVariables',
'~/plugins/metaInfo',
'~/plugins/vueAudioVisual',
'~/plugins/vueClipboard',
'~/plugins/vueSocialSharing',
],
// Auto import components: https://go.nuxtjs.dev/config-components
components: {
dirs: [
{
path: '~/components',
extensions: ['vue']
},
{
path: '~/components/landing',
extensions: ['vue']
},
{
path: '~/components/metadata',
extensions: ['vue']
},
{
path: '~/components/rmrk',
extensions: ['vue']
},
{
path: '~/components/series',
extensions: ['vue']
},
{
path: '~/components/settings',
extensions: ['vue']
},
{
path: '~/components/shared',
extensions: ['vue']
},
{
path: '~/components/spotlight',
extensions: ['vue']
},
{
path: '~/components/toolbox',
extensions: ['vue']
},
{
path: '~/components/transfer',
extensions: ['vue']
},
]
},
// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
buildModules: [
// https://go.nuxtjs.dev/typescript
'@nuxt/typescript-build',
'@nuxtjs/pwa'
],
// Modules: https://go.nuxtjs.dev/config-modules
modules: [
// https://go.nuxtjs.dev/buefy
['nuxt-buefy', {
css: false,
defaultIconPack: 'fas',
defaultIconComponent: 'vue-fontawesome',
defaultFieldLabelPosition: 'inside'
}],
'@nuxtjs/apollo',
'@nuxtjs/i18n',
],
i18n: {
defaultLocale: 'en',
detectBrowserLanguage: {
useCookie: true,
cookieKey: 'lang',
fallbackLocale: 'en',
alwaysRedirect: true
},
loadLanguagesAsync: true,
langDir: 'langDir',
locales: [
{ code: 'en', iso: 'en-US', file: 'en.json' },
{ code: 'cn', iso: 'cn', file: 'cn.json' },
{ code: 'fr', iso: 'fr', file: 'fr.json' },
{ code: 'es', iso: 'es', file: 'es.json' },
{ code: 'bn', iso: 'bn', file: 'bn.json' },
{ code: 'cz', iso: 'cz', file: 'cz.json' },
{ code: 'de', iso: 'de', file: 'de.json' },
{ code: 'hi', iso: 'hi', file: 'hi.json' },
{ code: 'it', iso: 'it', file: 'it.json' },
{ code: 'jp', iso: 'jp', file: 'jp.json' },
{ code: 'ko', iso: 'ko', file: 'ko.json' },
{ code: 'nl', iso: 'nl', file: 'nl.json' },
{ code: 'pl', iso: 'pl', file: 'pl.json' },
{ code: 'pt', iso: 'pt', file: 'pt.json' },
{ code: 'ru', iso: 'ru', file: 'ru.json' },
{ code: 'sk', iso: 'sk', file: 'sk.json' },
{ code: 'tu', iso: 'tu', file: 'tu.json' },
{ code: 'ua', iso: 'ua', file: 'ua.json' },
{ code: 'ur', iso: 'ur', file: 'ur.json' },
{ code: 'vt', iso: 'vt', file: 'vt.json' },
],
strategy: 'prefix_except_default',
vueI18n: {
fallbackLocale: 'en',
// hide the warning message from the console.
silentTranslationWarn: true
// silentFallbackWarn: true,
}
},
apollo: {
clientConfigs: {
default: {
httpEndpoint: 'https://api.subquery.network/sq/vikiival/magick'
}
}
},
// Build Configuration: https://go.nuxtjs.dev/config-build
build: {
extend (config, { isDev, isClient }) {
config.resolve.alias['vue'] = 'vue/dist/vue.common' //https://github.com/nuxt/nuxt.js/issues/1142#issuecomment-317272538
config.node = {
fs: 'empty'
}
}
},
watchers: {
webpack: {
poll: true
}
}
}