From e7a12ac80ac728b8c6844991e2ecc7ee9d91c4aa Mon Sep 17 00:00:00 2001 From: Julius Volz Date: Mon, 25 Oct 2021 12:52:13 +0200 Subject: [PATCH] Fix broken prefixed asset links in webpack build (#9586) * Fix broken prefixed asset links in webpack build Fixes https://github.com/prometheus/prometheus/issues/9585 Signed-off-by: Julius Volz * Use .env file for PUBLIC_URL npm build env var Signed-off-by: Julius Volz --- web/ui/react-app/.env | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 web/ui/react-app/.env diff --git a/web/ui/react-app/.env b/web/ui/react-app/.env new file mode 100644 index 000000000..b4cad0c00 --- /dev/null +++ b/web/ui/react-app/.env @@ -0,0 +1,3 @@ +# This ensures that all links in the generated asset bundle will be relative, +# so that assets are loaded correctly even when a path prefix is used. +PUBLIC_URL=.