Jhernandez has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/377309 )

Change subject: Fix: Specify a mount path for static assets
......................................................................

Fix: Specify a mount path for static assets

Otherwise in production they wouldn't get loaded because the paths
didn't match.

Bug: T175255
Change-Id: I29a16f513c1b2abcbe4b3996ca8d14476f78a650
---
M src/server/index.tsx
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/marvin refs/changes/09/377309/1

diff --git a/src/server/index.tsx b/src/server/index.tsx
index afef007..61ea712 100644
--- a/src/server/index.tsx
+++ b/src/server/index.tsx
@@ -22,7 +22,7 @@
 
 const server = express();
 
-server.use(express.static("dist/public"));
+server.use("/public", express.static("dist/public"));
 
 const render = (response: RouteResponse<any, any>) => {
   const Body = response.component;

-- 
To view, visit https://gerrit.wikimedia.org/r/377309
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I29a16f513c1b2abcbe4b3996ca8d14476f78a650
Gerrit-PatchSet: 1
Gerrit-Project: marvin
Gerrit-Branch: master
Gerrit-Owner: Jhernandez <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to