-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
70 lines (69 loc) · 1.75 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
import path from "path";
import Aura from "@primevue/themes/aura";
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: "2024-04-03",
devtools: { enabled: true },
modules: [
"@primevue/nuxt-module",
"@nuxtjs/tailwindcss",
"@nuxt/fonts",
"@nuxt/image",
"@vueuse/nuxt",
"@nuxt/eslint",
"@nuxtjs/seo",
"nuxt-security",
"@nuxt/icon",
"nuxt-booster",
// "@nuxtjs/i18n",
"nuxt-delay-hydration",
"@nuxtjs/partytown",
],
primevue: {
autoImport: true,
options: {
ripple: true,
theme: {
preset: Aura,
},
},
// importPT: { from: path.resolve(__dirname, "./presets/aura/") },
importPT: { as: "Aura", from: "~/presets/aura" }, // for windows
},
css: ["./assets/css/base.scss", "primeicons/primeicons.css", "./assets/css/tailwind.css"],
image: {
defaults: {
loading: "lazy",
quality: 80, // Adjust image quality
format: "webp", // Use WebP for smaller image sizes
},
},
site: {
url: "https://example.com",
name: "Nuxt.js",
description: "Welcome to my awesome site!",
defaultLocale: "en",
},
// i18n: {
// lazy: true,
// langDir: "locales",
// locales: [
// { code: "en", language: "en-US", name: "English", file: "en-US.json" },
// ],
// defaultLocale: "en-US",
// strategy: "no_prefix",
// detectBrowserLanguage: {
// useCookie: true,
// cookieKey: "i18n_redirected",
// alwaysRedirect: true,
// fallbackLocale: "en",
// },
// },
security: {
headers: {
crossOriginEmbedderPolicy:
// TODO Add .env var
process.env.NODE_ENV === "development" ? "unsafe-none" : "require-corp",
},
},
});