aboutsummaryrefslogtreecommitdiff
path: root/vnext/server/middleware/renderer.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-10-30 00:58:33 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:58 +0300
commit5e53e6d06e8d18f0871dfa673acd100c2f2e9e7a (patch)
tree2d1284ba37b4595f5f63cecb8b072bba082ea139 /vnext/server/middleware/renderer.js
parent059a5a13a8018676110796048b2e98943af42eb6 (diff)
Bundle server with esbuild
Diffstat (limited to 'vnext/server/middleware/renderer.js')
-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 || '');