We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d8959d commit ebb7bc5Copy full SHA for ebb7bc5
server/render.js
@@ -14,7 +14,7 @@ export async function render (path, req, res, { root = process.cwd() } = {}) {
14
props = await Component.getInitialProps({ req, res })
15
}
16
17
- const bundlePath = resolve(root, '.next', '.next', 'pages', path || 'index.js')
+ const bundlePath = resolve(root, '.next', '.next', 'pages', (path || 'index') + '.js')
18
const component = await fs.readFile(bundlePath, 'utf8')
19
20
const app = createElement(App, {
0 commit comments