-
Notifications
You must be signed in to change notification settings - Fork 63
/
Copy pathnuxt.config.ts
38 lines (37 loc) · 938 Bytes
/
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
// https://v3.nuxtjs.org/api/configuration/nuxt.config
const ONE_DAY = 60 * 60 * 24 * 1000;
const ONE_WEEK = ONE_DAY * 7;
export default defineNuxtConfig({
app: {
head: {
bodyAttrs: {
class: "bg-slate-950 antialiased text-white",
},
htmlAttrs: {
lang: "en",
},
meta: [
{
name: "description",
content: "Example of a simple authentication system using Nuxt3",
},
],
title: "Simple authentication example using Nuxt3",
},
},
compatibilityDate: "2024-11-11",
devtools: { enabled: true },
future: {
compatibilityVersion: 4,
},
modules: ["@nuxt/eslint", "@unocss/nuxt"],
runtimeConfig: {
cookieName: "__session",
cookieSecret: "secret",
cookieExpires: ONE_DAY.toString(),
cookieRememberMeExpires: ONE_WEEK.toString(),
},
unocss: {
safelist: ["bg-slate-950", "antialiased", "text-white"],
},
});