-
Notifications
You must be signed in to change notification settings - Fork 8
/
nuxt.config.js
169 lines (164 loc) · 5.14 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
// eslint-disable-next-line nuxt/no-cjs-in-config
require('./config.js');
export default {
// Target: https://go.nuxtjs.dev/config-target
target: 'static',
generate: {
fallback: true
},
// server: {
// port: 80 // default: 3000
// },
// router: {
// base: '/frontend/'
// },
// Global page headers: https://go.nuxtjs.dev/config-head
head: {
titleTemplate: '%s - Nosana Network',
title: 'Nosana - The Future of GPU Compute',
htmlAttrs: {
lang: 'en'
},
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: '' },
{
hid: 'og:title',
property: 'og:title',
content: 'Nosana - The Future of GPU Compute'
},
{
hid: 'og:description',
property: 'og:description',
content: 'The most cost-effective GPU grid, with zero lock-in. Developed and customized for AI inference workloads. Consumers, miners, and businesses can monetize their idle hardware by becoming a Nosana Node. Powered by Solana and the $NOS token.'
},
{
hid: 'og:image',
property: 'og:image',
content: 'https://testnet.nosana.io/img/screenshot.png'
}
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
{ rel: 'preconnect', href: 'https://fonts.gstatic.com' },
{ rel: 'stylesheet', href: 'https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap' },
{ rel: 'stylesheet', href: 'https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap' },
{ rel: 'stylesheet', href: 'https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap' }
]
},
// Global CSS: https://go.nuxtjs.dev/config-css
css: [
'@fortawesome/fontawesome-free/css/all.css',
'@/assets/scss/global.scss'
],
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
plugins: [
{ src: '@/plugins/sol.js', mode: 'client' },
{ src: '@/plugins/stake.js', mode: 'client' },
{ src: '@/plugins/job.js', mode: 'client' },
{ src: '@/plugins/axios.js', mode: 'client' },
{ src: '@/plugins/countdown.js', mode: 'client' },
'@/plugins/modal.js'
],
// 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/moment',
'@nuxtjs/google-analytics'
],
googleAnalytics: {
id: process.env.NUXT_ENV_GOOGLE_ANALYTICS || null
},
// Modules: https://go.nuxtjs.dev/config-modules
modules: [
'@nuxtjs/axios',
'@nuxtjs/auth-next'
],
auth: {
strategies: {
local: {
endpoints: {
login: { url: `${process.env.NUXT_ENV_BACKEND_URL}/login`, method: 'post', propertyName: 'token' },
user: { url: `${process.env.NUXT_ENV_BACKEND_URL}/user`, method: 'get', propertyName: '' },
logout: false
},
user: {
property: ''
}
},
githubLogin: {
scheme: 'local',
endpoints: {
login: { url: `${process.env.NUXT_ENV_BACKEND_URL}/login/github`, method: 'post', propertyName: 'token' },
user: { url: `${process.env.NUXT_ENV_BACKEND_URL}/user`, method: 'get', propertyName: '' },
logout: false
},
user: {
property: ''
}
}
},
watchLoggedIn: true,
// localStorage: false,
// cookie: false,
fullPathRedirect: true,
redirect: {
login: '/login',
logout: '/login',
home: false
},
plugins: [
{ src: '~/plugins/axios.js' },
{ src: '~/plugins/carousel.js', mode: 'client' }
]
},
// Build Configuration: https://go.nuxtjs.dev/config-build
build: {
extend (config) {
config.module.rules.push({
test: /\.mjs$/,
include: /node_modules/,
type: 'javascript/auto'
});
},
babel: {
plugins: [
['@babel/plugin-proposal-nullish-coalescing-operator']
]
},
transpile: [
'countup.js',
'vue-countup-v2',
'@nosana/schema-validator',
'@solana/spl-token',
'@solana/wallet-adapter-base',
'@solana/wallet-adapter-sollet',
'@solana/wallet-adapter-bitkeep',
'@solana/wallet-adapter-bitpie',
'@solana/wallet-adapter-blocto',
'@solana/wallet-adapter-clover',
'@solana/wallet-adapter-coinhub',
'@solana/wallet-adapter-ledger',
'@solana/wallet-adapter-mathwallet',
'@solana/wallet-adapter-phantom',
'@solana/wallet-adapter-safepal',
'@solana/wallet-adapter-solflare',
'@solana/wallet-adapter-solong',
'@solana/wallet-adapter-tokenpocket',
'@solana/wallet-adapter-torus',
'@solana/wallet-adapter-coin98',
'@solana/wallet-adapter-slope',
'@solana/wallet-adapter-backpack',
'@solana/wallet-adapter-brave'
],
loaders: {
scss: {
additionalData: '@import \'~assets/scss/variables.scss\';'
}
}
}
};