-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
74 lines (72 loc) · 2.2 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
import rehypeExternalLinks from "rehype-external-links";
export default defineNuxtConfig({
modules: [
"nuxt-icon",
"@nuxt/content",
"@element-plus/nuxt",
"@nuxtjs/google-fonts",
],
extends: "@nuxt-themes/typography",
googleFonts: {
families: {
"Open+Sans": true,
},
},
app: {
pageTransition: {
name: "slide-bottom",
mode: "out-in",
},
head: {
charset: "utf-8",
viewport: "width=device-width, initial-scale=1",
meta: [{ name: "description", content: `Semolik's portfolio` }],
},
},
vite: {
css: {
preprocessorOptions: {
scss: {
additionalData: [
'@use "@/assets/styles/_colors.scss" as *;',
'@use "@/assets/styles/breakpoints.scss" as *;',
'@use "@/assets/styles/helpers.scss" as *;',
].join(""),
},
},
},
},
content: {
highlight: {
theme: {
dark: "github-dark",
default: "light-plus",
},
},
markdown: {
anchorLinks: false,
rehypePlugins: {
"rehype-external-links": {
instance: rehypeExternalLinks,
target: "_blank",
rel: ["nofollow", "noopener", "noreferrer"],
},
},
},
},
css: ["@/assets/styles/global.scss"],
runtimeConfig: {
DISCORD_BOT_TOKEN: process.env.DISCORD_BOT_TOKEN,
DISCORD_SERVER_ID: process.env.DISCORD_SERVER_ID,
DISCORD_USER_ID: process.env.DISCORD_USER_ID,
DISCORD_SKIP_APPLICATIONS_IDS:
process.env.DISCORD_SKIP_APPLICATIONS_IDS?.split(",") ?? [],
LAST_FM_API_KEY: process.env.LAST_FM_API_KEY,
LAST_FM_API_SECRET: process.env.LAST_FM_API_SECRET,
public: {
CODESTATS_USERNAME: process.env.CODESTATS_USERNAME,
LAST_FM_USERNAME: process.env.LAST_FM_USERNAME,
GITHUB_USERNAME: process.env.GITHUB_USERNAME,
},
},
});