后端迁移到fastapi (#3)
Reviewed-on: #3
This commit was merged in pull request #3.
This commit is contained in:
+9
-1
@@ -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)),
|
||||
|
||||
Reference in New Issue
Block a user