feat: add authentication protected encyclopedia routing, update relevant documents and configurations

This commit is contained in:
2026-07-18 16:20:51 +08:00
parent 613452b7fe
commit 8da565b36b
7 changed files with 35 additions and 17 deletions
+9 -1
View File
@@ -6,7 +6,6 @@ import tailwindcss from '@tailwindcss/vite'
const publicRoutes = [
'/',
'/encyclopedia',
'/gallery',
'/community',
]
@@ -32,6 +31,7 @@ function seoFilesPlugin() {
'Disallow: /login',
'Disallow: /register',
'Disallow: /upload',
'Disallow: /encyclopedia',
'Disallow: /profile/settings',
`Sitemap: ${siteUrl}/sitemap.xml`,
'',
@@ -57,6 +57,14 @@ function seoFilesPlugin() {
export default defineConfig({
plugins: [vue(), tailwindcss(), seoFilesPlugin()],
server: {
port: 5173,
strictPort: true,
},
preview: {
port: 5173,
strictPort: true,
},
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),