Skip to content

Commit

Permalink
fix(azure): fix route name (unjs#430)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasdiez authored and WinterYukky committed Nov 1, 2022
1 parent 6e57326 commit 67e95b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/presets/azure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ async function writeRoutes (nitro) {
if (file.endsWith('index.html')) {
return
}
const route = file.slice(prefix, '.html'.length)
const route = file.slice(prefix, -'.html'.length)
const existingRouteIndex = config.routes.findIndex(_route => _route.route === route)
if (existingRouteIndex > -1) {
config.routes.splice(existingRouteIndex, 1)
Expand Down

0 comments on commit 67e95b9

Please sign in to comment.