feat: 初始化慧遇书院官网一期

This commit is contained in:
2026-08-12 18:01:17 +08:00
commit 5d31ee5743
101 changed files with 17259 additions and 0 deletions

42
nuxt.config.ts Normal file
View File

@@ -0,0 +1,42 @@
export default defineNuxtConfig({
compatibilityDate: '2026-08-10',
devtools: { enabled: false },
css: ['~/assets/css/main.scss'],
app: {
head: {
htmlAttrs: { lang: 'zh-CN' },
meta: [
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ name: 'theme-color', content: '#f5f7fa' },
],
link: [{ rel: 'icon', type: 'image/png', href: '/images/brand-logo-v2.png' }],
},
pageTransition: { name: 'page', mode: 'out-in' },
},
runtimeConfig: {
sessionPassword: '',
sessionCookieSecure: false,
databasePath: './data/db/huiyu.sqlite',
initialAdminUsername: 'admin',
initialAdminPassword: '',
public: {
siteUrl: 'http://localhost:3000',
},
},
nitro: {
compressPublicAssets: true,
externals: {
external: ['better-sqlite3'],
},
},
routeRules: {
'/images/**': { headers: { 'Cache-Control': 'public, max-age=31536000, immutable' } },
'/admin/**': { ssr: false, headers: { 'X-Robots-Tag': 'noindex, nofollow', 'Cache-Control': 'no-store' } },
'/api/admin/**': { headers: { 'Cache-Control': 'no-store' } },
'/api/auth/**': { headers: { 'Cache-Control': 'no-store' } },
},
typescript: {
strict: true,
typeCheck: false,
},
})