Skip to content

Commit

Permalink
chore: apply automated lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Aug 30, 2023
1 parent 60c3d5f commit 82571b7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/prerender.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,10 @@ export async function prerender(nitro: Nitro) {
const isImplicitHTML =
!route.endsWith(".html") && contentType.includes("html");
const routeWithIndex = route.endsWith("/") ? route + "index" : route;
const htmlPath = route.endsWith("/") || nitro.options.experimental.prerenderIndexHTML
? joinURL(route, "index.html")
: route + ".html";
const htmlPath =
route.endsWith("/") || nitro.options.experimental.prerenderIndexHTML
? joinURL(route, "index.html")
: route + ".html";
_route.fileName = withoutBase(
isImplicitHTML ? htmlPath : routeWithIndex,
nitro.options.baseURL
Expand Down

0 comments on commit 82571b7

Please sign in to comment.