forked from matter-labs/dapp-portal
-
Notifications
You must be signed in to change notification settings - Fork 2
/
nuxt.config.ts
125 lines (124 loc) · 3.06 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
122
123
124
125
import { portal as portalMeta } from "./data/meta";
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
app: {
// baseURL: "/",
head: {
htmlAttrs: {
lang: "en",
},
link: [
{
rel: "stylesheet",
href: "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap",
},
],
meta: [
{
property: "og:image",
content: portalMeta.previewImg.src,
},
{
property: "og:image:alt",
content: portalMeta.previewImg.alt,
},
{
property: "og:image:type",
content: "image/png",
},
{
property: "og:image:width",
content: "1200",
},
{
property: "og:image:height",
content: "630",
},
],
script: [
{
src: "https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit",
},
{
hid: "Rudder-JS",
src: "https://cdn.rudderlabs.com/v1.1/rudder-analytics.min.js",
defer: true,
},
],
},
},
plugins: [],
modules: ["@kevinmarrec/nuxt-pwa", "@pinia/nuxt"],
ssr: false,
pwa: {
meta: {
name: portalMeta.title,
description: portalMeta.description,
},
manifest: {
name: portalMeta.title,
short_name: "Nova Portal",
description: portalMeta.description,
start_url: '/',
display: 'standalone',
background_color: '#000',
icons: [{
src: 'icon.png',
sizes: '180',
type: 'image/png'
}],
"iconPath": "icon.png"
},
icon: {
source: "icon.png",
fileName: 'icon.png'
},
},
css: ["@/assets/css/tailwind.css", "@/assets/css/style.scss", "web3-avatar-vue/dist/style.css"],
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
},
runtimeConfig: {
public: {
walletConnectProjectID: process.env.WALLET_CONNECT_PROJECT_ID,
turnstileKey: process.env.TURNSTILE_KEY,
nodeType: process.env.NODE_TYPE as undefined | "memory" | "dockerized" | "hyperchain" | "nexus",
ankrToken: process.env.ANKR_TOKEN,
screeningApiUrl: process.env.SCREENING_API_URL,
dataplaneUrl: process.env.DATAPLANE_URL,
rudderKey: process.env.RUDDER_KEY,
},
},
pinia: {
autoImports: [
// automatically imports `defineStore` and `storeToRefs` typings
"defineStore",
"storeToRefs",
],
},
vite: {
define: {
// make these env available even outside of the Nuxt context
"process.env.NODE_TYPE": JSON.stringify(process.env.NODE_TYPE),
"process.env.WALLET_CONNECT_PROJECT_ID": JSON.stringify(process.env.WALLET_CONNECT_PROJECT_ID),
},
css: {
preprocessorOptions: {
scss: {
additionalData: '@use "@/assets/css/_mixins.scss" as *;',
},
},
},
build: {
target: "ESNext",
},
optimizeDeps: {
esbuildOptions: {
target: "es2020",
},
},
},
});