-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathnuxt.config.ts
121 lines (120 loc) · 3.12 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
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
import vuetify, { transformAssetUrls } from 'vite-plugin-vuetify'
import { polyfillNode } from "esbuild-plugin-polyfill-node";
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
app: {
head: {
link: [
{ rel: 'stylesheet', href: 'https://use.fontawesome.com/releases/v5.0.13/css/all.css' },
]
}
},
appConfig: {
umami: {
version: 2,
ignoreLocalhost: true,
},
},
runtimeConfig: {
nftStorageApiKey: '',
awsAccessKeyId: '',
awsSecretAccessKey: '',
awsSesRegion: '',
awsS3Region: '',
awsS3BucketTracks: '',
awsS3BucketPodcast: '',
awsS3AccessKeyId: '',
awsS3SecretAccessKey: '',
pinataApiKey: '',
pinataApiSecret: '',
public: {
baseUrl: 'http://localhost:3000',
network: process.env.NUXT_PUBLIC_NETWORK || 'testnet',
rpcAddress: process.env.NUXT_PUBLIC_RPC_ADDRESS || 'https://rpc.bwasmnet-1.bitsong.network',
restAddress: process.env.NUXT_PUBLIC_REST_ADDRESS || 'https://api.bwasmnet-1.bitsong.network',
chainId: process.env.NUXT_PUBLIC_CHAIN_ID || 'bwasmnet-1',
appName: 'Studio',
links: {
tos: 'https://bitsong.io/tos',
privacy: 'https://bitsong.io/privacy'
},
ipfsGateway: 'https://media-api-direct.bitsong.studio/ipfs/{cid}',
//ipfsGateway: 'http://localhost:3001/media-api/ipfs/{cid}',
umamiHost: '',
umamiId: '',
mediaApi: '',
mediaApiDirect: '/media-api',
posthogPublicKey: '',
posthogHost: '',
walletconnectProjectId: '',
},
},
// css: [
// '@mdi/font/css/materialdesignicons.css',
// //'@fortawesome/fontawesome-free/css/all.css'
// ],
build: {
transpile: ['trpc-nuxt', 'vue-toastification', 'vuetify'],
},
gtag: {
id: "G-41SQ7H37C8",
},
image: {
domains: [
'yellow-hilarious-jay-665.mypinata.cloud',
'media-api.bitsong.studio',
'media-api-direct.bitsong.studio',
'localhost',
'bitsong.studio',
'testnet.bitsong.studio'
],
},
extends: ['nuxt-umami'],
modules: [
'@nuxt/eslint',
'nuxt-gtag',
'nuxt-og-image',
'@nuxt/image',
'@pinia/nuxt',
'@quirks/nuxt',
'@vue-email/nuxt',
'@vueuse/nuxt',
(_options, nuxt) => {
nuxt.hooks.hook('vite:extendConfig', (config) => {
config.plugins!.push(vuetify({ autoImport: true }))
})
},
],
nitro: {
storage: {
mnft: {
driver: 'fs',
base: './storage/mnft',
}
},
routeRules: {
'/media-api/**': {
proxy: {
to: `${import.meta.env.NUXT_PUBLIC_MEDIA_API || 'http://localhost:3000'}/**`,
}
},
'/ingest/static/**': { proxy: `${import.meta.env.NUXT_PUBLIC_POSTHOG_HOST}/static/**` },
'/ingest/**': { proxy: `${import.meta.env.NUXT_PUBLIC_POSTHOG_HOST}/**` },
'/wc-test': {
ssr: false,
}
}
},
vueEmail: {
baseUrl: process.env.NUXT_PUBLIC_SITE_URL || 'http://localhost:3000',
},
vite: {
plugins: [polyfillNode()],
vue: {
template: {
transformAssetUrls,
},
},
},
})