Skip to content

Commit

Permalink
fix(azure): fix route name (#430)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasdiez authored Aug 19, 2022
1 parent 1d02d01 commit ba39ffe
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 ba39ffe

Please sign in to comment.