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)