Skip to content

Commit

Permalink
include only when 404.astro exists
Browse files Browse the repository at this point in the history
  • Loading branch information
lilnasy committed Jan 3, 2024
1 parent b125b2c commit 20d7243
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/integrations/vercel/src/static/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,11 @@ export default function vercelStatic({
continue: true,
},
{ handle: 'filesystem' },
{
src: `/*`,
...routes.find(route => route.component.endsWith("/pages/404.astro")) ? [{
src: `/.*`,
dest: `/404.html`,
status: 404,
}
}] : [],
],
...(imageService || imagesConfig
? {
Expand Down

0 comments on commit 20d7243

Please sign in to comment.