-
Notifications
You must be signed in to change notification settings - Fork 2
/
nuxt.config.ts
107 lines (106 loc) · 3.24 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
// https://nuxt.com/docs/api/configuration/nuxt-config
import eslintPlugin from "vite-plugin-eslint";
export default defineNuxtConfig({
// ssr: false,
app: {
head: {
viewport: "width=device-width,initial-scale=1,viewport-fit=cover",
link: [
{ rel: "icon", href: "/favicon.ico", sizes: "any" },
// { rel: "icon", type: "image/svg+xml", href: "/logo.svg" },
{ rel: "apple-touch-icon", href: "/apple-touch-icon.png" },
{ rel: "apple-touch-startup-image", href: "/apple-touch-icon.png" },
],
meta: [
{
name: "apple-mobile-web-app-status-bar-style",
content: "black-translucent",
},
{ name: "language", content: "en" },
{
name: "description",
content: "Windows 11 made in Nuxt.js and Tailwind CSS",
},
// open graph social image
{ property: "og:title", content: "Windows 11 by Nemanja Dragun" },
{ property: "twitter:title", content: "Windows 11 by Nemanja Dragun" },
{
property: "og:description",
content: "Windows 11 made in Nuxt.js and Tailwind CSS",
},
{
property: "twitter:description",
content: "Windows 11 made in Nuxt.js and Tailwind CSS",
},
{ property: "og:type", content: "website" },
{ property: "og:image", content: "/favicon.png" },
{ property: "twitter:image", content: "/favicon.png" },
// { property: "og:image:width", content: "3800" },
// { property: "og:image:height", content: "1900" },
{ property: "og:site_name", content: "Windows 11 by Nemanja Dragun" },
// { property: 'twitter:site', content: '' },
// { property: 'twitter:card', content: 'summary_large_image' },
],
},
},
experimental: {
payloadExtraction: false,
inlineSSRStyles: false,
},
nitro: {
compressPublicAssets: true,
routeRules: {
"/_nuxt/**": { headers: { "cache-control": "max-age=31536000" } }, // Set generated files cache to 1 year
},
esbuild: {
options: {
target: "esnext",
},
},
},
runtimeConfig: {
public: {
baseURL: "",
},
},
vite: {
plugins: [eslintPlugin()],
css: {
preprocessorOptions: {
scss: {
additionalData: `@import "@/assets/css/utils/global.scss";`,
},
},
},
build: {
target: "esnext",
},
},
css: ["~/assets/css/main.scss"],
modules: [
// https://pinia.vuejs.org/ssr/nuxt.html
"@pinia/nuxt",
// https://tailwindcss.nuxt.dev/
"@nuxtjs/tailwindcss",
// https://v1.image.nuxtjs.org/get-started/
"@nuxt/image-edge",
// https://github.com/nuxt-modules/icon
// https://icones.js.org/collection/all?s=github
"nuxt-icon",
// https://vueuse.org/guide/#nuxt
"@vueuse/nuxt",
// https://github.com/MorevM/vue-transitions
"@morev/vue-transitions/nuxt",
// https://v1.image.nuxtjs.org/get-started/
"@nuxt/image-edge",
// https://nuxt.com/modules/simple-robots
"nuxt-simple-robots",
// https://nuxt.com/modules/simple-sitemap
"nuxt-simple-sitemap",
// https://nuxt.com/modules/fontaine
"@nuxtjs/fontaine",
],
sitemap: {
hostname: "https://os-windows11.vercel.app",
},
});