-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
89 lines (88 loc) · 2.44 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
import { defineNuxtConfig } from "nuxt/config";
export default defineNuxtConfig({
devtools: { enabled: false },
modules: ["@nuxtjs/tailwindcss", "nuxt-primevue", "@nuxt/image"],
plugins: [{ src: "~/plugins/theme.ts", mode: "client" }],
primevue: {
cssLayerOrder: "tailwind-base, primevue, tailwind-utilities",
components: {
include: ["Button", "Tag", "Divider", "Menubar"],
},
},
runtimeConfig: {
theme: "dark",
},
build: {
transpile: ["primevue"],
},
nitro: {
preset: "github-pages",
},
image: {
quality: 80,
format: ["webp"],
provider: "ipx",
presets: {
responsive: {
modifiers: {
format: "webp",
},
},
},
},
app: {
head: {
htmlAttrs: {
lang: "en",
dir: "ltr",
},
charset: "utf-8",
viewport: "width=device-width, initial-scale=1",
title: "The RomM Project",
link: [
{
rel: "stylesheet",
href: "https://unpkg.com/[email protected]/resources/themes/aura-light-purple/theme.css",
id: "theme-link",
},
],
script: [
{
children:
'let m=window.matchMedia("(prefers-color-scheme: dark)");if(m.matches){const e=document.getElementById("theme-link");e.href=e.href.replace("light","dark");document.documentElement.classList.add("dark")}',
},
],
meta: [
{ name: "author", content: "The RomM Team" },
{ name: "keywords", content: "romm, rom, manager, game, collection" },
{
name: "description",
content:
"RomM is a self-hosted rom manager for your game collection.",
},
{ name: "og:title", content: "The RomM Project" },
{
name: "og:description",
content:
"RomM is a self-hosted rom manager for your game collection.",
},
{
name: "og:image",
content: "https://romm.app/images/og/og-image.png",
},
{ name: "twitter:card", content: "summary_large_image" },
{ name: "twitter:title", content: "The RomM Project" },
{
name: "twitter:description",
content:
"RomM is a self-hosted rom manager for your game collection.",
},
{
name: "twitter:image",
content: "https://romm.app/images/og/og-image.png",
},
{ name: "theme-color", content: "#cf00fb" },
],
},
},
});