diff --git a/server/index.js b/server/index.js
index <HASH>..<HASH> 100644
--- a/server/index.js
+++ b/server/index.js
@@ -131,7 +131,7 @@ export default class Server {
           return await renderScriptError(req, res, '/_error', error, customFields, this.renderOpts)
         }
 
-        const p = join(this.dir, '.next/bundles/pages/_error.js')
+        const p = join(this.dir, `${this.dist}/bundles/pages/_error.js`)
         await this.serveStatic(req, res, p)
       },
 
diff --git a/server/render.js b/server/render.js
index <HASH>..<HASH> 100644
--- a/server/render.js
+++ b/server/render.js
@@ -109,7 +109,8 @@ async function doRender (req, res, pathname, query, {
 
 export async function renderScript (req, res, page, opts) {
   try {
-    const path = join(opts.dir, '.next', 'bundles', 'pages', page)
+    const dist = getConfig(opts.dir).distDir
+    const path = join(opts.dir, dist, 'bundles', 'pages', page)
     const realPath = await resolvePath(path)
     await serveStatic(req, res, realPath)
   } catch (err) {
use configured distDir where required (#<I>)