-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
106 lines (104 loc) · 2.38 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
import vuetify, { transformAssetUrls } from "vite-plugin-vuetify";
const publicWebUrl = process.env.PUBLIC_WEB_URL || "https://os.ewe.moe";
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
build: {
transpile: ["vuetify"],
},
nitro: {
prerender: {
autoSubfolderIndex: false,
},
},
modules: [
(_options, nuxt) => {
nuxt.hooks.hook("vite:extendConfig", (config) => {
// @ts-expect-error
config.plugins.push(vuetify({ autoImport: true }));
});
},
"@nuxt/content",
"@nuxtjs/google-fonts",
"@nuxt/eslint",
"@nuxtjs/sitemap",
"nuxt-schema-org",
"nuxt-seo-experiments",
"nuxt-route-meta",
"nuxt-og-image",
[
"nuxt-content-git",
{
createdAtName: "gitCreatedAt",
updatedAtName: "gitUpdatedAt",
},
],
],
ogImage: {
fonts: [
// will load the Noto Sans font from Google fonts
"Roboto:100",
"Roboto:300",
"Roboto:400",
"Roboto:500",
"Roboto:700",
"Roboto:900",
],
},
routeRules: {
"/blog/6": { redirect: "/blog/202405-progress-report" },
"/blog/5": { redirect: "/blog/202404-progress-report" },
"/blog/2": { redirect: "/blog/202403-eweos-roadmap" },
},
runtimeConfig: {
public: {
siteUrl: publicWebUrl,
},
},
site: {
url: publicWebUrl,
name: "eweOS",
},
vite: {
vue: {
template: {
transformAssetUrls,
},
},
},
pages: true,
css: ["@mdi/font/css/materialdesignicons.min.css"],
googleFonts: {
families: {
Roboto: [100, 300, 400, 500, 700, 900],
},
},
app: {
head: {
titleTemplate: "eweOS | %s",
meta: [
{
name: "keywords",
content:
"eweOS,Linux,distro,distribution,ewe,musl,lightweight,busybox,rolling-release",
},
{
name: "viewport",
content: "width=device-width, initial-scale=1, maximum-scale=1",
},
],
},
},
schemaOrg: {
identity: {
type: "Organization",
name: "eweOS",
description:
"An musl-based, lightweight, general-purpose Linux distribution",
url: "https://os.ewe.moe",
logo: "https://os.ewe.moe/icon.png",
sameAs: ["https://github.com/eweOS", "https://t.me/eweos"],
foundingDate: "2022-08-31",
},
},
});