Skip to content

Commit

Permalink
fix: redirect 시 파일로 떨어지는 문제 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
dungsil committed Sep 23, 2024
1 parent 398b976 commit 45926c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
5 changes: 5 additions & 0 deletions astro.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import { defineConfig } from 'astro/config'
import redirects from './src/redirects.ts'

const redirectEntries = Object.entries(redirects)
.map(([key, { href }]) => [`/${key}`, href])

// https://astro.build/config
export default defineConfig({
output: 'static',
redirects: Object.fromEntries(redirectEntries)
})
14 changes: 0 additions & 14 deletions src/pages/[id].ts

This file was deleted.

0 comments on commit 45926c6

Please sign in to comment.