pet_data/nuxt.config.ts

43 lines
1.1 KiB
TypeScript
Raw Permalink Normal View History

2025-11-23 18:03:56 +00:00
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: '2025-07-15',
devtools: { enabled: true },
modules: [
'@nuxt/content',
'@nuxt/eslint',
'@nuxt/hints',
'@nuxt/image',
'@nuxt/scripts',
'@nuxt/test-utils',
'@nuxt/ui'
2025-11-25 10:04:01 +00:00
],
// 確保使用自定義頁面
pages: true,
// 禁用 UI 模組的預設歡迎頁面
ui: {
global: true,
icons: ['heroicons']
},
// 移動端優化配置
app: {
head: {
viewport: 'width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover',
2025-11-26 09:53:03 +00:00
link: [
{ rel: 'preconnect', href: 'https://fonts.googleapis.com' },
{ rel: 'preconnect', href: 'https://fonts.gstatic.com', crossorigin: '' },
{ rel: 'stylesheet', href: 'https://fonts.googleapis.com/css2?family=DotGothic16&display=swap' }
],
2025-11-25 10:04:01 +00:00
meta: [
2025-11-26 06:53:44 +00:00
{ name: 'mobile-web-app-capable', content: 'yes' },
2025-11-25 10:04:01 +00:00
{ name: 'apple-mobile-web-app-status-bar-style', content: 'black-translucent' },
{ name: 'theme-color', content: '#6b6250' }
]
}
2025-11-26 06:53:44 +00:00
},
css: ['~/assets/css/tailwind.css']
2025-11-23 18:03:56 +00:00
})