-
Notifications
You must be signed in to change notification settings - Fork 74
/
nuxt.config.ts
65 lines (56 loc) · 1.31 KB
/
nuxt.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
import { head, hooks } from './nuxt-config'
const isLocalLayer = process.env.LOCAL_LAYER === 'true'
export default defineNuxtConfig({
hooks,
ssr: false,
builder: 'vite',
css: ['@/assets/css/tailwind.css'],
extends: [
isLocalLayer
? '../injective-ui/layer'
: 'github:InjectiveLabs/injective-ui/layer#master'
],
app: {
head
},
vite: {
server: {
hmr: {
protocol: 'ws',
host: '0.0.0.0',
clientPort: 3000,
port: 24678
}
}
},
imports: {
dirs: ['composables/**', 'store/*.ts', 'store/**/index.ts']
},
pinia: {
autoImports: ['defineStore']
},
modules: ['@funken-studio/sitemap-nuxt-3'],
// @ts-ignore
sitemap: {
hostname:
process.env.VITE_BASE_URL &&
!process.env.VITE_BASE_URL.includes('localhost')
? process.env.VITE_BASE_URL
: 'https://helixapp.com',
gzip: true
},
// @ts-ignore
bugsnag: process.env.VITE_BUGSNAG_KEY
? {
disabled: false,
publishRelease: true,
baseUrl: process.env.VITE_BASE_URL,
config: {
releaseStage: process.env.VITE_ENV,
notifyReleaseStages: ['staging', 'mainnet'],
appVersion: process.env.npm_package_version,
apiKey: process.env.VITE_BUGSNAG_KEY
}
}
: undefined
})