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 <julius.volz@gmail.com>

* Use .env file for PUBLIC_URL npm build env var

Signed-off-by: Julius Volz <julius.volz@gmail.com>
This commit is contained in:
Julius Volz 2021-10-25 12:52:13 +02:00 committed by GitHub
parent 21834bca6b
commit e7a12ac80a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

3
web/ui/react-app/.env Normal file
View File

@ -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=.