Skip to content

Commit 7de2624

Browse files
fix: pathname error
1 parent 6dd959e commit 7de2624

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/node/build.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,6 @@ export async function build(ssgOptions: Partial<ViteReactSSGOptions> = {}, viteC
136136
const { app: innerApp, routes, initialState, triggerOnSSRAppRendered, transformState = serializeState } = appCtx
137137

138138
const transformedIndexHTML = (await onBeforePageRender?.(route, indexHTML, appCtx))
139-
if (route === '/')
140-
route = ''
141139

142140
const url = new URL(route, 'http://vite-react-ssg.com')
143141
url.search = ''

0 commit comments

Comments
 (0)