Skip to content

Commit

Permalink
[fix] 빌드시 404 에러 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
lybell-art committed Aug 23, 2024
1 parent 3685609 commit 138ddc2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions packages/adminPage/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const buildUrl = [
"events/[id]",
"comments",
"comments/[id]",
"users"
];

async function copyFolder(src, dest) {
Expand Down
2 changes: 2 additions & 0 deletions packages/adminPage/public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
User-agent: *
Disallow: /
12 changes: 8 additions & 4 deletions packages/adminPage/vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,19 @@
},
{
"source": "/events/create",
"destination": "/events/create.html"
"destination": "/events/create"
},
{
"source": "/events/:path(:path((?!create(\\.html)?$).*)",
"destination": "/events/[id].html"
"source": "/events/(.*)/edit",
"destination": "/events/create"
},
{
"source": "/events/(.*)",
"destination": "/events/[id]"
},
{
"source": "/comments/(.*)",
"destination": "/comments/[id].html"
"destination": "/comments/[id]"
}
],
"cleanUrls": true
Expand Down

0 comments on commit 138ddc2

Please sign in to comment.