-
Notifications
You must be signed in to change notification settings - Fork 11
/
nuxt.config.ts
87 lines (81 loc) · 2.03 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
import type { ModuleOptions } from '@nuxtjs/sitemap'
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
css: ['~/assets/css/main.css'],
runtimeConfig: {
// secret keys, only available on server
openaiApiKey: process.env.OPENAI_API_KEY,
supabaseUrl: process.env.SUPABASE_URL,
supabaseServiceRoleKey: process.env.SUPABASE_SERVICE_ROLE_KEY,
stripeServerKey: process.env.STRIPE_SERVER_KEY,
// public keys, also exposed to client
public: {
GOOGLE_CLIENT_ID: process.env.GOOGLE_CLIENT_ID,
stripeClientKey: process.env.STRIPE_CLIENT_KEY,
publicUrl: process.env.PUBLIC_URL
}
},
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
},
compatibilityDate: '2024-08-19',
modules: [
'@nuxtjs/sitemap',
"@unlok-co/nuxt-stripe",
'@nuxtjs/i18n',
],
sitemap: <Partial<ModuleOptions>>{
hostname: 'https://xxxxx.net', // Change to your site URL
gzip: true,
exclude: [
'/admin/**'
],
routes: [
'/',
'/terms',
'/privacy',
'/refund',
'/links',
'/success',
'/cancel',
'/blog',
'/price',
'/contact'
]
},
stripe: {
// Server
server: {
key: process.env.STRIPE_SERVER_KEY,
options: {
maxNetworkRetries: 1,
telemetry: true,
// https://github.com/stripe/stripe-node?tab=readme-ov-file#configuration
},
// CLIENT
},
client: {
key: process.env.STRIPE_CLIENT_KEY,
// your api options override for stripe client side https://stripe.com/docs/js/initializing#init_stripe_js-options
options: {},
},
},
site: {
url: 'https://xxxxx.net', // Change to your site URL
},
i18n: {
vueI18n: './i18n.config.ts',
locales: [
// Add your locales here
{ code: 'en', language: 'en-US' },
{ code: 'fr', language: 'fr-FR' },
{ code: 'de', language: 'de-DE' }
],
defaultLocale: 'en',
lazy: true,
strategy: 'prefix_except_default',
}
})