Files
陈春 c9cf644ac5 chore: 添加构建推送脚本并更新项目配置
- 添加 build-and-push.sh 脚本用于自动化构建和推送 Docker 镜像
- 更新 .dockerignore 排除 pnpm-workspace.yaml
- 更新项目依赖和配置文件
2026-06-03 17:19:14 +08:00

48 lines
999 B
TypeScript
Executable File

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
app: {
head: {
charset: 'utf-8',
viewport: 'width=device-width, initial-scale=1, maximum-scale=1',
},
},
vite: {
optimizeDeps: {
include: [
'lenis',
'gsap',
'gsap/ScrollTrigger',
],
},
},
compatibilityDate: '2025-07-15',
devtools: { enabled: true },
css: ['~/assets/css/tailwind.css'],
modules: [
'@nuxtjs/i18n',
'@nuxt/hints',
'@nuxt/icon',
'@nuxtjs/tailwindcss',
'@pinia/nuxt'
],
tailwindcss: {
exposeConfig: true,
viewer: true,
},
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
},
i18n: {
locales: [
{ code: 'zh', name: '中文', language: 'zh-CN', file: 'zh.json' },
{ code: 'en', name: 'English', language: 'en-US', file: 'en.json' },
],
defaultLocale: 'zh',
strategy: 'no_prefix',
detectBrowserLanguage: false,
},
})