-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
103 lines (86 loc) · 1.68 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
experimental: {
componentIslands: true,
},
devServer: {
port: 80,
host: "0.0.0.0",
},
devtools: { enabled: true },
monacoEditor: {
// These are default values:
locale: "ru",
},
mdc: {
headings: {
anchorLinks: false,
},
},
content: {
headings: {
anchorLinks: false,
},
},
modules: [
"nuxt-aos",
"nuxt-monaco-editor",
"@nuxt/ui",
"@nuxt/fonts",
"@nuxt/image",
"@nuxt/eslint",
"@nuxtjs/seo",
// "@nuxtjs/algolia",
"@nuxtjs/mdc",
"@nuxtjs/supabase",
"@nuxt/content",
],
image: {
domains: ["db.portal.ort.spb.ru"],
formats: ["avif", "webp"],
},
routeRules: {
"/manage/**": { robots: false },
},
sitemap: {
sources: ["/api/sitemap/content"],
},
app: {
layoutTransition: { name: "layout", mode: "out-in" },
pageTransition: { name: "page", mode: "out-in" },
},
// algolia: {
// instantSearch: {
// theme: "algolia",
// },
// },
css: ["./app/assets/style.scss"],
site: {
url: process.env.SITE_URL,
name: "Школа №550",
description: "Официальный портал школы №550",
defaultLocale: "ru",
},
future: {
compatibilityVersion: 4,
},
runtimeConfig: {
public: {
site_url: process.env.SITE_URL,
environment: process.env.NODE_ENV,
file_server_url: process.env.FILE_SERVER_URL,
},
},
supabase: {
url: process.env.SUPABASE_PUBLIC_URL,
key: process.env.ANON_KEY,
serviceKey: process.env.SERVICE_ROLE_KEY,
types: "./supabase/types.ts",
redirectOptions: {
include: ["/manage(/*)?"],
login: "/login",
callback: "/test",
},
},
compatibilityDate: "2024-07-17",
});