-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
67 lines (66 loc) · 1.99 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
import { defineNuxtConfig } from 'nuxt'
const webpack = require('webpack')
// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
builder: 'webpack',
css: [
'vue-toastification/dist/index.css'
],
hooks: {
'webpack:config'(configs) {
configs[0].resolve.fallback = {
assert: require.resolve('assert/'),
stream: require.resolve('stream-browserify'),
http: require.resolve('stream-http'),
https: require.resolve('https-browserify'),
os: require.resolve('os-browserify/browser'),
url: require.resolve('url/'),
}
configs[0].plugins.push(
new webpack.ProvidePlugin({
process: 'process/browser',
}),
)
configs[0].plugins.push(
new webpack.ProvidePlugin({
Buffer: ['buffer', 'Buffer'],
}),
)
},
},
meta: {
link: [
{ // Bootstrap icons
rel: "stylesheet",
href: "https://cdn.jsdelivr.net/npm/bootstrap-icons@1.9.1/font/bootstrap-icons.css"
},
{ // Bootstrap
rel: "stylesheet",
href: "/css/base.css"
}
],
script: [
{
src: "https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js"
}
]
},
modules: [
'@pinia/nuxt',
'@vueuse/nuxt',
],
publicRuntimeConfig: {
alchemyEthereumKey: process.env.NUXT_ALCHEMY_ETHEREUM_KEY,
alchemyPolygonKey: process.env.NUXT_ALCHEMY_POLYGON_KEY,
alchemyOptimismKey: process.env.NUXT_ALCHEMY_OPTIMISM_KEY,
alchemyArbitrumKey: process.env.NUXT_ALCHEMY_ARBITRUM_KEY,
alchemyMumbaiKey: process.env.NUXT_ALCHEMY_MUMBAI_KEY,
orbisContext: "kjzl6cwe1jw14bmb4kgw6gbu6umo8jz9vxjsunueihadbpr9977tj93s2diycb1", // production context
orbisTest: false, // if true, test context will be used instead of the production one
projectName: "Punk Domains",
projectUrl: "https://punk-nuxt-starter.vercel.app/",
supportedChainId: 10,
tldName: ".wagmi",
},
target: "static"
})