Skip to content

Commit ebb7bc5

Browse files
committed
render: fix bundle path
1 parent 2d8959d commit ebb7bc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/render.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export async function render (path, req, res, { root = process.cwd() } = {}) {
1414
props = await Component.getInitialProps({ req, res })
1515
}
1616

17-
const bundlePath = resolve(root, '.next', '.next', 'pages', path || 'index.js')
17+
const bundlePath = resolve(root, '.next', '.next', 'pages', (path || 'index') + '.js')
1818
const component = await fs.readFile(bundlePath, 'utf8')
1919

2020
const app = createElement(App, {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy