-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnuxt.config.js
138 lines (124 loc) · 4.45 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
const APP_URL = 'https://MyNFT-zcwd7.ondigitalocean.app/'
export default {
// Global page headers: https://go.nuxtjs.dev/config-head
head: {
title: 'MyNFT',
meta: [
{ charset: 'utf-8' },
{ hid: 'viewport', name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: 'NFT Auction Market (non-fungible tokens)' },
{ hid: 'og:title', property: 'og:title', content: 'MyNFT - NFT Auction Market' },
{ hid: 'og:description', property: 'og:description', content: 'NFT Auction Market (non-fungible tokens)' },
{ hid: 'og:type', property: 'og:type', content: 'website' },
{ hid: 'og:url', property: 'og:url', content: APP_URL },
{ hid: 'og:image', property: 'og:image', content: APP_URL + '/seo/og.png' },
{ hid: 'og:image:width', property: 'og:image:width', content: '1200' },
{ hid: 'og:image:height', property: 'og:image:height', content: '800' }
],
link: [
{ rel: 'apple-touch-icon', href: '/icon/apple-touch-icon.png', sizes: '180x180' },
{ rel: 'icon', href: '/icon/favicon-32x32.png', sizes: '32x32' },
{ rel: 'icon', href: '/icon/favicon-16x16.png', sizes: '16x16' },
{ rel: 'manifest', href: '/icon/site.webmanifest' }
],
script: [
]
},
dev: process.env.NODE_ENV !== 'production',
css: [
'element-ui/lib/theme-chalk/index.css',
'@/assets/styles/app.styl',
'@/assets/styles/theme.styl',
'@/assets/theme/index.css'
],
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
plugins: [
'@/plugins/element-ui',
{ src: '@/plugins/MyNFT', ssr: false, mode: 'client' },
{ src: '@/plugins/browser', ssr: false, mode: 'client' },
{ src: '@/plugins/element-ui' },
{ src: '@/plugins/image-preloader', ssr: false, mode: 'client' },
{ src: '@/plugins/listings', ssr: false, mode: 'client' },
{ src: '@/plugins/mixins', ssr: false, mode: 'client' },
{ src: '@/plugins/opensea', ssr: false, mode: 'client' },
{ src: '@/plugins/wallets', ssr: false, mode: 'client' }
],
publicRuntimeConfig: {
baseURL: process.env.BASE_URL || 'https://MyNFT.org',
infuraURL: process.env.INFURA_URL || 'https://rinkeby.infura.io/v3/96ffec68046b4148872ac3b0453d0b4f',
openseaURL: process.env.OPENSEA_URL || 'https://rinkeby-api.opensea.io/api/v1/',
openseaAssetsURL: process.env.OPENSEA_ASSETS_URL || '${openseaURL}assets',
MyNFTAddress: process.env.MyNFT_ADDRESS || '0x4d4d6B16a15244Bd37D29371DF6F071a3da8fA43',
nftAddress: process.env.NFT_ADDRESS || '0x22315052952395e072469048330716659b27d857',
validChains: process.env.VALID_CHAINS || ['0x4', 'rinkeby', 4], //'0x1', 'main', 1,
chainNames: process.env.CHAIN_NAMES || ['Rinkeby'] // 'Mainnet'
},
// Auto import components: https://go.nuxtjs.dev/config-components
components: true,
// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
buildModules: [
// https://go.nuxtjs.dev/eslint
'@nuxtjs/eslint-module',
'@nuxtjs/style-resources',
'@aceforth/nuxt-optimized-images',
'@nuxtjs/svg',
'@nuxtjs/device',
'@nuxtjs/google-gtag',
'@nuxtjs/color-mode'
],
device: {
refreshOnResize: true
},
// 'google-gtag': {
// id: 'UA-XXXXXXXX',
// config: {
// anonymize_ip: true, // anonymize IP
// linker: {
// domains: ['MyNFT.org']
// }
// }
// // debug: true, // enable to track in dev mode
// },
styleResources: {
stylus: [
'./assets/mixins.styl',
'./assets/tokens.styl',
'@nib'
]
},
optimizedImages: {
optimizeImages: true,
optimizeImagesInDev: true,
handleImages: ['jpeg', 'png', 'webp', 'gif']
},
// Modules: https://go.nuxtjs.dev/config-modules
modules: [
// https://go.nuxtjs.dev/axios
'@nuxtjs/axios',
// https://go.nuxtjs.dev/pwa
'@nuxtjs/pwa',
// https://go.nuxtjs.dev/content
'@nuxt/content',
'nuxt-webfontloader',
['nuxt-vuex-localstorage', {
wallet: {
provider: null,
keepDisconnect: false
}
}]
],
// Axios module configuration: https://go.nuxtjs.dev/config-axios
axios: {},
// PWA module configuration: https://go.nuxtjs.dev/pwa
pwa: {
manifest: {
lang: 'en'
}
},
// Content module configuration: https://go.nuxtjs.dev/config-content
content: {},
// Build Configuration: https://go.nuxtjs.dev/config-build
build: {
transpile: [/^element-ui/]
}
}