-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
89 lines (89 loc) · 2.14 KB
/
Copy pathnuxt.config.ts
File metadata and controls
89 lines (89 loc) · 2.14 KB
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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
ssr: false,
compatibilityDate: '2024-04-03',
devtools: { enabled: true },
modules: [
'@nuxtjs/tailwindcss',
'maz-ui/nuxt',
'@nuxt/icon',
'@pinia/nuxt',
'@pinia-plugin-persistedstate/nuxt',
'@vueuse/nuxt',
'@nuxtjs/supabase',
'@nuxtjs/google-fonts',
'@vite-pwa/nuxt',
'@nuxtjs/robots',
'@nuxtjs/sitemap',
'nuxt-link-checker',
'nuxt-seo-experiments',
],
plugins: [
'~/plugins/mazToaster.js'
],
routeRules: {
'/': { prerender: true }
},
app: {
pageTransition: { name: 'page', mode: 'out-in' },
head: {
title: 'CLHS午餐訂餐系統v3',
meta: [
{ name: 'description', content: '為學生提供方便快速的午餐訂餐服務' },
{ name: 'google-site-verification', content: 'X9eP00pJfv2y0GzKFMaVhbDvg7s8WL8yC1w2bxRb07M' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
]
}
},
site: {
url: 'https://clhs-lunch.vercel.app/',
name: 'CLHS午餐訂餐系統v3',
description: '為學生提供方便快速的午餐訂餐服務',
defaultLocale: 'zh-TW',
},
sitemap: {
exclude:['/app/*']
},
css: [
'@/assets/css/maz-ui-variables.css'
],
supabase: {
url: process.env.SUPABASE_URL,
key: process.env.SUPABASE_KEY,
redirect: false
},
googleFonts: {
families: {
Outfit: true,
'Noto Sans Traditional Chinese': true
}
},
pwa: {
registerType: 'autoUpdate',
manifest: {
name: 'CLHS午餐訂餐系統',
short_name: 'CLHS Lunch',
description: '為學生提供方便快速的午餐訂餐服務',
theme_color: '#ffffff',
background_color: '#ffffff',
display: 'standalone',
start_url: '/',
icons: [
{
src: '/icon-192-192.png',
sizes: '192x192',
type: 'image/png',
purpose: 'any maskable',
},
{
src: '/icon-512-512.png',
sizes: '512x512',
type: 'image/png',
purpose: 'any maskable',
},
],
},
},
})