-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
183 lines (174 loc) · 6.48 KB
/
Copy pathnuxt.config.ts
File metadata and controls
183 lines (174 loc) · 6.48 KB
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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: '2026-07-19',
future: {
compatibilityVersion: 3,
},
devtools: { enabled: process.env.NODE_ENV !== 'production' },
experimental: {
appManifest: false,
},
ssr: true,
modules: [
'@nuxtjs/tailwindcss',
'@nuxt/icon',
'nuxt-auth-utils',
],
// Vercel deployment
nitro: {
preset: 'vercel',
routeRules: {
'/**': {
headers: {
'X-Content-Type-Options': 'nosniff',
'X-Frame-Options': 'DENY',
'X-Permitted-Cross-Domain-Policies': 'none',
'Referrer-Policy': 'strict-origin-when-cross-origin',
'Permissions-Policy': 'camera=(), microphone=(), geolocation=(), payment=()',
'Cross-Origin-Opener-Policy': 'same-origin',
'Strict-Transport-Security': 'max-age=31536000; includeSubDomains',
'Content-Security-Policy': "default-src 'self'; base-uri 'self'; object-src 'none'; frame-ancestors 'none'; form-action 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; font-src 'self' data:; img-src 'self' data:; connect-src 'self'; upgrade-insecure-requests",
},
},
},
},
// Variables d'environnement runtime
runtimeConfig: {
// Session (nuxt-auth-utils utilise NUXT_SESSION_PASSWORD)
session: {
password: process.env.NUXT_SESSION_PASSWORD || '',
},
// Base de données Turso
tursoDbUrl: process.env.TURSO_DB_URL || '',
tursoDbToken: process.env.TURSO_DB_TOKEN || '',
// App URL
appUrl: process.env.APP_URL || 'http://localhost:3000',
// Publicly disclosed partner links. Set SUPPORT_CATALOG_JSON=[] to disable
// this catalogue, or replace it with your own validated JSON entries.
supportCatalogJson: process.env.SUPPORT_CATALOG_JSON || JSON.stringify([
{
id: 'pokepings-free',
kind: 'affiliate',
title: 'PokePings Free',
description: 'Découvrez la version gratuite de PokePings.',
url: 'https://whop.com/pokepings/pokepings-free?a=enzoizinga',
disclosure: 'Lien affilié PokePings — BitLock peut recevoir une commission.',
},
{
id: 'pokepings-premium',
kind: 'affiliate',
title: 'PokePings Premium',
description: 'Accédez aux fonctionnalités Premium de PokePings.',
url: 'https://whop.com/pokepings/pokepings-premium?a=enzoizinga',
disclosure: 'Lien affilié PokePings — BitLock peut recevoir une commission.',
},
{
id: 'pokepings',
kind: 'affiliate',
title: 'PokePings',
description: 'Explorez PokePings et choisissez l’offre qui vous convient.',
url: 'https://whop.com/pokepings?a=enzoizinga',
disclosure: 'Lien affilié PokePings — BitLock peut recevoir une commission.',
},
{
id: 'toolsuite-vip',
kind: 'affiliate',
title: 'ToolSuite VIP',
description: 'Découvrez l’offre VIP de ToolSuite.',
url: 'https://whop.com/toolsuite/buy-vip?a=enzoizinga',
disclosure: 'Lien affilié ToolSuite — BitLock peut recevoir une commission.',
},
{
id: 'toolsuite',
kind: 'affiliate',
title: 'ToolSuite',
description: 'Explorez ToolSuite et ses offres disponibles.',
url: 'https://whop.com/toolsuite?a=enzoizinga',
disclosure: 'Lien affilié ToolSuite — BitLock peut recevoir une commission.',
},
{
id: 'steven-bloom-box',
kind: 'affiliate',
title: 'Stevens Whop · Bloom Box',
description: 'Découvrez l’offre Bloom Box Fresh Flowers Monthly.',
url: 'https://whop.com/steven/bloom-box-fresh-flowers-monthly?a=enzoizinga',
disclosure: 'Lien affilié Stevens Whop — BitLock peut recevoir une commission.',
},
{
id: 'steven-politics-intel',
kind: 'affiliate',
title: 'Stevens Whop · Politics Intel',
description: 'Découvrez l’offre Politics Intel.',
url: 'https://whop.com/steven/politics-intel?a=enzoizinga',
disclosure: 'Lien affilié Stevens Whop — BitLock peut recevoir une commission.',
},
{
id: 'steven-founder-advisory',
kind: 'affiliate',
title: 'Stevens Whop · Founder Advisory',
description: 'Découvrez l’offre Founder Advisory.',
url: 'https://whop.com/steven/founder-advisory?a=enzoizinga',
disclosure: 'Lien affilié Stevens Whop — BitLock peut recevoir une commission.',
},
{
id: 'steven-trade-talk',
kind: 'affiliate',
title: 'Stevens Whop · Trade Talk',
description: 'Découvrez l’offre Trade Talk.',
url: 'https://whop.com/steven/trade-talk?a=enzoizinga',
disclosure: 'Lien affilié Stevens Whop — BitLock peut recevoir une commission.',
},
{
id: 'stevens-whop',
kind: 'affiliate',
title: 'Stevens Whop',
description: 'Explorez les autres offres Stevens Whop.',
url: 'https://whop.com/steven?a=enzoizinga',
disclosure: 'Lien affilié Stevens Whop — BitLock peut recevoir une commission.',
},
]),
// Public
public: {
appName: 'BitLock',
},
},
tailwindcss: {
cssPath: '~/assets/css/main.css',
},
postcss: {
plugins: {
cssnano: { preset: 'default' },
},
},
imports: {
dirs: ['composables/**'],
},
app: {
head: {
title: 'BitLock - Votre coffre-fort numérique',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1, viewport-fit=cover' },
{ name: 'description', content: 'BitLock - Stockez vos mots de passe, liens et clés crypto en toute sécurité avec un chiffrement zero-knowledge.' },
{ property: 'og:site_name', content: 'BitLock' },
{ property: 'og:title', content: 'BitLock - Votre coffre-fort numérique' },
],
link: [
{ rel: 'icon', type: 'image/svg+xml', href: '/bitlock-logo.svg' },
{ rel: 'shortcut icon', type: 'image/svg+xml', href: '/bitlock-logo.svg' },
{ rel: 'apple-touch-icon', href: '/apple-touch-icon-v2.png' },
],
script: [
{
type: 'application/ld+json',
innerHTML: JSON.stringify({
'@context': 'https://schema.org',
'@type': 'WebSite',
name: 'BitLock',
url: process.env.APP_URL || 'http://localhost:3000',
}),
},
],
},
},
})