aboutsummaryrefslogtreecommitdiff
path: root/vnext/server
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/server')
-rw-r--r--vnext/server/index.js2
-rw-r--r--vnext/server/middleware/renderer.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/vnext/server/index.js b/vnext/server/index.js
index 7479393a..d393c4bc 100644
--- a/vnext/server/index.js
+++ b/vnext/server/index.js
@@ -24,7 +24,7 @@ router.get('/api/oembed', oembed);
router.get('/api/urlexpand', urlExpand);
router.use('^/$', serverRenderer);
-const STATIC_ROOT = config.get('service.static_root') || path.resolve(__dirname, 'dist');
+const STATIC_ROOT = config.get('service.static_root') || path.resolve(__dirname, 'public');
// other static resources should just be served as they are
router.use(express.static(
diff --git a/vnext/server/middleware/renderer.js b/vnext/server/middleware/renderer.js
index 646e7d6c..339c0449 100644
--- a/vnext/server/middleware/renderer.js
+++ b/vnext/server/middleware/renderer.js
@@ -22,7 +22,7 @@ function toBinary(string) {
return Buffer.from(String.fromCharCode(...new Uint8Array(codeUnits.buffer))).toString('base64');
}
-const STATIC_ROOT = config.get('service.static_root') || path.resolve(__dirname, 'dist');
+const STATIC_ROOT = config.get('service.static_root') || path.resolve(__dirname, 'public');
const serverRenderer = async (req, res) => {