File tree 3 files changed +2
-10
lines changed
3 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -150,8 +150,6 @@ function newRouter(): Router {
150
150
url . hash
151
151
return import ( /*@vite -ignore*/ path )
152
152
} )
153
- } else if ( import . meta. env . SSR ) {
154
- pageModule = import ( /*@vite -ignore*/ `${ pageFilePath } ?t=${ Date . now ( ) } ` )
155
153
} else {
156
154
pageModule = import ( /*@vite -ignore*/ pageFilePath )
157
155
}
Original file line number Diff line number Diff line change @@ -52,9 +52,7 @@ export async function build(
52
52
}
53
53
54
54
const entryPath = path . join ( siteConfig . tempDir , 'app.js' )
55
- const { render } = await import (
56
- pathToFileURL ( entryPath ) . toString ( ) + '?t=' + Date . now ( )
57
- )
55
+ const { render } = await import ( pathToFileURL ( entryPath ) . href )
58
56
59
57
await task ( 'rendering pages' , async ( ) => {
60
58
const appChunk =
Original file line number Diff line number Diff line change @@ -52,11 +52,7 @@ export async function renderPage(
52
52
try {
53
53
// resolve page data so we can render head tags
54
54
const { __pageData } = await import (
55
- pathToFileURL (
56
- path . join ( config . tempDir , pageServerJsFileName )
57
- ) . toString ( ) +
58
- '?t=' +
59
- Date . now ( )
55
+ pathToFileURL ( path . join ( config . tempDir , pageServerJsFileName ) ) . href
60
56
)
61
57
pageData = __pageData
62
58
} catch ( e ) {
You can’t perform that action at this time.
0 commit comments