This repository has been archived by the owner on Jun 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
nuxt.config.ts
96 lines (95 loc) · 2.49 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
import { defineNuxtConfig } from 'nuxt/config';
import { datetimeFormats } from './locales/dateTimeFormat';
// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
debug: process.env.NODE_ENV !== 'production',
sourcemap: process.env.NODE_ENV !== 'production',
runtimeConfig: {
githubToken: process.env.GITHUB_API_TOKEN,
devToToken: process.env.DEVTO_API_TOKEN,
discord: {
token: process.env.DISCORD_TOKEN,
guildId: process.env.DISCORD_GUILD_ID,
},
supabaseServiceRoleKey: process.env.SUPABASE_SERVICE_ROLE_KEY,
sendGridApiKey: process.env.SENDGRID_API_KEY,
public: {
pageUrl: process.env.PAGE_URL,
gitHub: {
repository: 'vuestorefront/developer.vuestorefront.io',
contentPath: 'content',
branch: 'main',
},
supabase: {
url: process.env.SUPABASE_URL,
publicKey: process.env.SUPABASE_PUBLIC_KEY,
},
},
},
server: {
host: '0.0.0.0',
port: 3000,
},
experimental: {
reactivityTransform: true,
},
build: {
transpile: ['@headlessui/vue'],
},
modules: [
'@intlify/nuxt3',
'@pinia/nuxt',
'@nuxtjs/tailwindcss',
'@vueuse/nuxt',
'@vue-storefront/nuxt-gtag',
'@nuxt/content',
'nuxt-icon',
],
app: {
head: {
link: [
{
rel: 'stylesheet',
href: 'https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700;1,800&family=Red+Hat+Display:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Red+Hat+Text:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap',
},
{ rel: 'preconnect', href: 'https://fonts.gstatic.com' },
],
},
},
loading: {
color: '#02bb4d',
},
tailwindcss: {
cssPath: '@/assets/scss/main.scss',
viewer: false,
injectPosition: 0,
},
content: {
highlight: {
preload: ['json', 'js', 'ts', 'html', 'css', 'vue'],
theme: 'material-darker',
},
},
intlify: {
localeDir: 'locales',
vueI18n: {
datetimeFormats,
legacy: false,
availableLocales: ['en'],
sync: true,
fallbackLocale: 'en',
locale: 'en',
},
},
gTag: {
enabled: process.env.NODE_ENV === 'production',
bootstrap: true,
pageViewTracker: true,
config: {
id: process.env.GOOGLE_TAG_ID,
params: {
send_page_view: true,
},
},
},
});