mirror of
https://github.com/KazooTTT/kazoottt-blog-v2.git
synced 2025-06-16 23:41:20 +08:00
feat: 优化重定向的写法
This commit is contained in:
@ -29,6 +29,12 @@ export default defineConfig({
|
||||
domains: ["webmention.io", "kazoottt.top"],
|
||||
service: passthroughImageService(),
|
||||
},
|
||||
redirects: {
|
||||
"/blog/[...slug]": "/posts/[...slug]",
|
||||
"/category/[...slug]": "/categories/[...slug]",
|
||||
"/diary/[...slug]": "/notes/[...slug]",
|
||||
"/tag/[...slug]": "/tags/[...slug]",
|
||||
},
|
||||
integrations: [
|
||||
expressiveCode(expressiveCodeOptions),
|
||||
icon(),
|
||||
|
Reference in New Issue
Block a user