Skip to content

Commit

Permalink
always remove leading slash
Browse files Browse the repository at this point in the history
  • Loading branch information
dummdidumm committed Nov 21, 2022
1 parent 09f9d20 commit 978ea73
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/adapter-vercel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,7 @@ export default function ({ external = [], edge, split } = {}) {

const src = `${sliced_pattern}(?:/__data.json)?$`; // TODO adding /__data.json is a temporary workaround — those endpoints should be treated as distinct routes

await generate_function(
route.id === '/' ? 'index' : route.id,
src,
entry.generateManifest
);
await generate_function(route.id.slice(1) || 'index', src, entry.generateManifest);
}
};
});
Expand Down

0 comments on commit 978ea73

Please sign in to comment.