-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
129 lines (121 loc) · 2.73 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
const meta = [
{
name: "charset",
content: "utf-8",
},
{
name: "title",
content: process.env.NUXT_APP_TITLE,
},
{
name: "viewport",
content: "width=device-width, initial-scale=1",
},
{
name: "author",
content: "Erbil Nas",
},
{
name: "description",
content:
"I'm Erbil, a software engineer who loves to create things and share knowledge.",
},
{
name: "keywords",
content:
"erbil, nas, software, engineer, developer, web, mobile, erbil nas, technology, website, personal, blog, portfolio, mentalmynx",
},
{
name: "robots",
content: "index, follow",
},
{
name: "theme-color",
content: "#000000",
},
];
const appConfig = {
profiles: {
linkedin: process.env.LINKEDIN_PROFILE,
trendyol: process.env.LINKEDIN_TRENDYOL,
spotify: process.env.SPOTIFY_PROFILE,
github: process.env.GITHUB_PROFILE,
hltb: process.env.HLTB_PROFILE,
twitter: process.env.TWITTER_PROFILE,
instagram: process.env.INSTAGRAM_PROFILE,
luv: process.env.LUV_PROFILE,
goodreads: process.env.GOODREADS_PROFILE,
steam: process.env.STEAM_PROFILE,
twitch: process.env.TWITCH_PROFILE,
youtube: process.env.YOUTUBE_PROFILE,
medium: process.env.MEDIUM_PROFILE,
},
maps: {
placesBeen: process.env.PLACES_BEEN_URL,
},
themes: {
dark: process.env.NUXT_APP_DARK_THEME,
light: process.env.NUXT_APP_LIGHT_THEME,
},
profilePicture: process.env.PROFILE_PICTURE_URL,
};
const runtimeConfig = {
hltbApi: process.env.HLTB_API,
rss2Json: {
apiKey: process.env.RSS2JSON_API_KEY,
},
spotify: {
tokenApi: process.env.SPOTIFY_TOKEN_API,
playerApi: process.env.SPOTIFY_PLAYER_API,
refreshToken: process.env.SPOTIFY_REFRESH_TOKEN,
clientToken: process.env.SPOTIFY_CLIENT_TOKEN,
},
stats: {
birthday: process.env.MY_BIRTHDAY_DATE,
firstWorkExperience: process.env.FIRST_WORK_EXPERIENCE_DATE,
},
};
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
modules: [
"nuxt-primevue",
"@pinia/nuxt",
"@nuxt/content",
"dayjs-nuxt",
"@nuxt/image",
],
css: ["primeicons/primeicons.css"],
primevue: {
options: {
ripple: true,
},
},
appConfig,
runtimeConfig,
app: {
head: {
title: process.env.NUXT_APP_TITLE,
charset: "utf-8",
htmlAttrs: {
lang: "en",
},
meta,
link: [
{
id: "theme-link",
rel: "stylesheet",
href: process.env.NUXT_APP_DARK_THEME,
},
],
script: [
{
src: "https://kit.fontawesome.com/f1354c0521.js",
crossorigin: "anonymous",
},
],
},
},
devtools: {
enabled: true,
},
});