-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
81 lines (72 loc) · 1.75 KB
/
nuxt.config.ts
File metadata and controls
81 lines (72 loc) · 1.75 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
css: ['~/assets/main.css'],
modules: ['@nuxtjs/seo', '@nuxtjs/i18n', '@nuxt/ui', '@vite-pwa/nuxt'],
app: {
head: {
charset: 'utf-8',
viewport: 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0',
link: [{ rel: 'icon', href: '/favicon.webp' }]
}
},
site: {
// url: 'http://localhost:3000',
url: 'https://webcamera.cc',
name: 'WebCamera',
description: 'WebCamera'
// defaultLocale: 'zh'
},
i18n: {
vueI18n: './i18n.config.ts',
baseUrl: 'https://webcamera.cc',
locales: [
{ code: 'en', iso: 'en-US' },
{ code: 'zh', iso: 'zh-CN' }
],
defaultLocale: 'en',
detectBrowserLanguage: {
useCookie: true,
cookieKey: 'i18n_redirected',
redirectOn: 'root'
}
},
ogImage: {
enabled: false
},
colorMode: {
preference: 'system', // default value of $colorMode.preference
fallback: 'light', // fallback value if not system preference found
hid: 'nuxt-color-mode-script',
globalName: '__NUXT_COLOR_MODE__',
componentName: 'ColorScheme',
classPrefix: '',
classSuffix: '',
storageKey: 'nuxt-color-mode'
},
pwa: {
strategies: 'generateSW',
registerType: 'autoUpdate',
workbox: {
runtimeCaching: [
{
urlPattern: () => true,
handler: 'NetworkOnly'
}
]
},
manifest: {
name: 'Web Camera',
short_name: 'WebCamera',
theme_color: '#ffffff',
icons: [
{
src: '/favicon.webp',
sizes: '512x512',
type: 'image/webp',
purpose: 'any'
}
]
}
}
})