Commit f6c641a6 authored by Tim Neutkens's avatar Tim Neutkens

Bring back old file path

parent da2bb321
...@@ -76,7 +76,7 @@ async function doRender (req, res, pathname, query, { ...@@ -76,7 +76,7 @@ async function doRender (req, res, pathname, query, {
await hotReloader.ensurePage(page) await hotReloader.ensurePage(page)
} }
const pagePath = join(distDir, SERVER_DIRECTORY, /* CLIENT_STATIC_FILES_PATH, */ buildId, 'pages', normalizedPagePath) const pagePath = join(distDir, SERVER_DIRECTORY, CLIENT_STATIC_FILES_PATH, buildId, 'pages', normalizedPagePath)
try { try {
await access(`${pagePath}.js`, (fs.constants || fs).R_OK) await access(`${pagePath}.js`, (fs.constants || fs).R_OK)
...@@ -84,8 +84,8 @@ async function doRender (req, res, pathname, query, { ...@@ -84,8 +84,8 @@ async function doRender (req, res, pathname, query, {
throw pageNotFoundError(page) throw pageNotFoundError(page)
} }
const documentPath = join(distDir, SERVER_DIRECTORY, /* CLIENT_STATIC_FILES_PATH, */ buildId, 'pages', '_document') const documentPath = join(distDir, SERVER_DIRECTORY, CLIENT_STATIC_FILES_PATH, buildId, 'pages', '_document')
const appPath = join(distDir, SERVER_DIRECTORY, /* CLIENT_STATIC_FILES_PATH, */ buildId, 'pages', '_app') const appPath = join(distDir, SERVER_DIRECTORY, CLIENT_STATIC_FILES_PATH, buildId, 'pages', '_app')
let Document = require(documentPath) let Document = require(documentPath)
let App = require(appPath) let App = require(appPath)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment