jenkins-bot has submitted this change and it was merged. ( 
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(-)

Approvals:
  Niedzielski: Looks good to me, approved
  jenkins-bot: Verified



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: merged
Gerrit-Change-Id: I29a16f513c1b2abcbe4b3996ca8d14476f78a650
Gerrit-PatchSet: 1
Gerrit-Project: marvin
Gerrit-Branch: master
Gerrit-Owner: Jhernandez <[email protected]>
Gerrit-Reviewer: Niedzielski <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to