-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
71 lines (68 loc) · 1.75 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
const appConfig = {
socialLinks: {
linkedin: process.env.LINKEDIN_PROFILE_URL,
spotify: process.env.SPOTIFY_PROFILE_URL,
github: process.env.GITHUB_PROFILE_URL,
howlongtobeat: process.env.HLTB_PROFILE_URL,
twitter: process.env.TWITTER_PROFILE_URL,
instagram: process.env.INSTAGRAM_PROFILE_URL,
goodreads: process.env.GOODREADS_PROFILE_URL,
steam: process.env.STEAM_PROFILE_URL,
twitch: process.env.TWITCH_PROFILE_URL,
youtube: process.env.YOUTUBE_PROFILE_URL,
medium: process.env.MEDIUM_PROFILE_URL,
},
maps: {
placesBeen: process.env.PLACES_BEEN_URL,
},
flippingWords: process.env.FLIPPING_WORDS,
version: process.env.npm_package_version || "Unknown",
};
const runtimeConfig = {
howlongtobeat: {
api: process.env.HOWLONGTOBEAT_API_URL,
},
rss2json: {
api: process.env.RSS2JSON_API_URL,
},
spotify: {
token_api: process.env.SPOTIFY_TOKEN_API_URL,
player_api: process.env.SPOTIFY_PLAYER_API_URL,
refresh_token: process.env.SPOTIFY_REFRESH_TOKEN,
client_token: process.env.SPOTIFY_CLIENT_TOKEN,
},
lifetime_stats: {
birthday: process.env.MY_BIRTHDAY_DATE,
first_work_experience: process.env.FIRST_WORK_EXPERIENCE_DATE,
},
};
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
modules: [
"@nuxt/image",
"@nuxtjs/tailwindcss",
"shadcn-nuxt",
"@nuxtjs/color-mode",
"@vueuse/motion/nuxt",
"@nuxt/icon",
],
appConfig,
runtimeConfig,
app: {
head: {
title: process.env.NUXT_APP_TITLE,
},
},
devtools: {
enabled: true,
},
compatibilityDate: "2025-01-02",
shadcn: {
prefix: "",
componentDir: "./components/ui",
},
colorMode: {
classSuffix: "",
preference: "dark",
},
});