-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
82 lines (78 loc) · 1.94 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
const siteOwnerNameHere = 'Yonatan Ben Knaan';
const baseUrlHere = process.env.DEPLOY_PRIME_URL;
const SiteNameHere = 'WWApe';
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
modules: ['@nuxt/content', '@vueuse/nuxt', '@unlazy/nuxt', 'nuxt-clarity-analytics', '@nuxt/image', '@nuxtjs/color-mode'],
routeRules: {
'/hunt/**': { redirect: '/work/**' },
},
content: {
// toc: {
// depth: 4,
// searchDepth: 4,
// },
highlight: {
langs: ['json', 'js', 'ts', 'html', 'css', 'scss', 'vue', 'shell', 'mdc', 'md', 'yaml'],
// Theme used in all color schemes.
// theme: 'github-light'
// OR
theme: {
// Default theme (same as single string)
default: 'light-plus',
// Theme used if `html.dark`
dark: 'dracula',
// Theme used if `html.sepia`
sepia: 'monokai',
},
},
markdown: {
anchorLinks: {
depth: 6,
},
},
},
devtools: { enabled: true },
css: ['~/assets/styles/style.scss', 'vue-final-modal/style.css'],
vite: {
css: {
preprocessorOptions: {
scss: {
additionalData: `
@use '~/assets/styles/reset' as *;
@use '~/assets/styles/vars' as *;
@use '~/assets/styles/mixins' as *;
@use '~/assets/styles/utopia' as *;
@use '~/assets/styles/table' as *;
@use '~/assets/styles/typography' as *;`,
},
},
},
},
app: {
head: {
charset: 'utf-8',
viewport: 'width=device-width, initial-scale=1, viewport-fit=cover',
},
pageTransition: {
name: 'page',
mode: 'out-in', // default
},
layoutTransition: {
name: 'layout',
mode: 'out-in', // default
},
},
runtimeConfig: {
// Private keys are only available on the server
clarityId: process.env.MICROSOFT_CLARITY_ID,
// Public keys that are exposed to the client
public: {
baseUrl: baseUrlHere,
siteOwnerName: siteOwnerNameHere,
siteName: SiteNameHere,
missingImg: '/missing.svg',
},
},
compatibilityDate: '2024-07-09',
});