-
Notifications
You must be signed in to change notification settings - Fork 1
/
nuxt.config.ts
99 lines (94 loc) · 2.82 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
import glslify from "vite-plugin-glslify";
export default defineNuxtConfig({
devtools: { enabled: true },
ssr: false,
app: {
head: {
title: "Nathan Mande's Site",
charset: "utf-8",
viewport: "width=device-width, initial-scale=1",
meta: [
{
key: "description",
name: "description",
content: "A 3D experience representing Nathan Mande's room",
},
{ name: "format-detection", content: "telephone=no" },
{ name: "x-ua-compatible", content: "IE=edge" },
{ name: "og:site_name", content: "Nathan Mande's Site" },
{ name: "og:type", content: "website" },
{ name: "og:title", content: "Nathan Mande's website" },
{
name: "og:description",
content: "A 3D experience representing Nathan Mande's room",
},
{ name: "og:image", content: "/imgs/screenshot.png" },
{ name: "twitter:card", content: "summary_large_image" },
{ name: "twitter:title", content: "Nathan Mande's website" },
{ name: "twitter:creator", content: "https://twitter.com/nsl_nathan" },
{ name: "twitter:image", content: "/imgs/screenshot.png" },
{
name: "twitter:description",
content: "A 3D experience representing Nathan Mande's room",
},
{ name: "application-name", content: "mydevjourney" },
],
link: [
{ rel: "icon", type: "image/x-icon", href: "/favicon.ico" },
{ rel: "manifest", href: "/favicon/site.webmanifest" },
],
},
},
srcDir: "./src",
components: [
// ~/components/pages/home/Update.vue => <HomeUpdate />
{ path: "~/components/pages" },
// ~/components/layout/Theme.vue => <L-Theme />
{ path: "~/components/layout", prefix: "L-" },
// ~/components/global/Btn.vue => <G-Btn />
{ path: "~/components/global", prefix: "G-" },
"~/components",
],
modules: ["@nuxtjs/i18n", "@nuxt/content", "@nuxtjs/tailwindcss"],
runtimeConfig: {
GITHUB_TOKEN: process.env.GITHUB_TOKEN,
GITHUB_USERNAME: process.env.GITHUB_USERNAME,
GITHUB_REPO_NAME: process.env.GITHUB_REPO_NAME,
public: {
MODE: process.env.MODE,
GITHUB_LINK: process.env.GITHUB_LINK,
LINKEDIN_LINK: process.env.LINKEDIN_LINK,
DISCORD_LINK: process.env.DISCORD_LINK,
STACKOVERFLOW_LINK: process.env.STACKOVERFLOW_LINK,
TWITTER_LINK: process.env.TWITTER_LINK,
TELEGRAM_LINK: process.env.TELEGRAM_LINK,
GITHUB_CONTENT_LINK: process.env.GITHUB_REPO_NAME,
},
},
typescript: {
typeCheck: true,
strict: true,
},
spaLoadingTemplate: false,
vite: {
plugins: [glslify()],
},
i18n: {
vueI18n: "./i18n.config.ts",
customRoutes: "config",
detectBrowserLanguage: false,
},
content: {
highlight: {
theme: "github-dark",
},
},
tailwindcss: {},
css: ["~/assets/styles/index.scss"],
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
},
});