aboutsummaryrefslogtreecommitdiff
path: root/vnext/server/middleware
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/server/middleware')
-rw-r--r--vnext/server/middleware/renderer.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/vnext/server/middleware/renderer.js b/vnext/server/middleware/renderer.js
index 6cc0b61b..4223d7f2 100644
--- a/vnext/server/middleware/renderer.js
+++ b/vnext/server/middleware/renderer.js
@@ -23,7 +23,7 @@ function toBinary(string) {
const serverRenderer = async (req, res) => {
// point to the html file created by CRA's build tool
- const filePath = path.resolve(__dirname, '..', '..', 'dist', 'index.html');
+ const filePath = path.resolve('index.html');
// links
const cookies = cookie.parse(req.headers.cookie || '');