Skip to content

Commit

Permalink
fix: redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
yongsk0066 committed Jul 21, 2024
1 parent a3f4383 commit 059854a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 32 deletions.
6 changes: 0 additions & 6 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@ import customTheme from './shiki/github-dark-default.json'

// https://astro.build/config
export default defineConfig({
redirects:{
"/rss.xml": {
status: 301,
destination:"https://yongseok.me/rss.xml"
}
},
i18n: {
defaultLocale: 'ko',
locales: ['ko', 'en'],
Expand Down
3 changes: 3 additions & 0 deletions src/pages/rss.xml.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
return Astro.redirect("https://yongseok.me/rss.xml");
---
26 changes: 0 additions & 26 deletions src/pages/rss.xml.js

This file was deleted.

0 comments on commit 059854a

Please sign in to comment.