Skip to content

Commit

Permalink
route.component -> route.pathname
Browse files Browse the repository at this point in the history
  • Loading branch information
lilnasy committed Jan 3, 2024
1 parent 1d5e1ea commit c7748f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/integrations/vercel/src/static/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export default function vercelStatic({
continue: true,
},
{ handle: 'filesystem' },
...routes.find(route => route.component.endsWith("/pages/404.astro")) ? [{
...routes.find(route => route.pathname === "/404") ? [{
src: `/.*`,
dest: `/404.html`,
status: 404,
Expand Down

0 comments on commit c7748f9

Please sign in to comment.