Skip to content

Commit

Permalink
fix: pathname error
Browse files Browse the repository at this point in the history
  • Loading branch information
Daydreamer-riri committed Jul 20, 2023
1 parent 6dd959e commit 7de2624
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/node/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,6 @@ export async function build(ssgOptions: Partial<ViteReactSSGOptions> = {}, viteC
const { app: innerApp, routes, initialState, triggerOnSSRAppRendered, transformState = serializeState } = appCtx

Check warning on line 136 in src/node/build.ts

View workflow job for this annotation

GitHub Actions / lint

'innerApp' is assigned a value but never used. Allowed unused vars must match /^_/u

Check warning on line 136 in src/node/build.ts

View workflow job for this annotation

GitHub Actions / lint

'initialState' is assigned a value but never used. Allowed unused vars must match /^_/u

Check warning on line 136 in src/node/build.ts

View workflow job for this annotation

GitHub Actions / lint

'transformState' is assigned a value but never used. Allowed unused vars must match /^_/u

const transformedIndexHTML = (await onBeforePageRender?.(route, indexHTML, appCtx))

Check warning on line 138 in src/node/build.ts

View workflow job for this annotation

GitHub Actions / lint

'transformedIndexHTML' is assigned a value but never used. Allowed unused vars must match /^_/u
if (route === '/')
route = ''

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

0 comments on commit 7de2624

Please sign in to comment.