You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to host the Admin UI dist on my own server due to some privacy policies, but I don't want to have a separate domain or subdomain for this repo. I want to define a new location in my Nginx configuration and host the original dist provided here on that particular location, let's say at /admin-ui.
But the problem is, my implementation fails to serve the JS and CSS resources when I try to access the Admin UI on my subdirectory route. I have tried setting the base tag in my dist/index.html file but it is also not working.
Is there any way I can clone this project directly on my server and then serve the static UI on a subdirectory route?
The text was updated successfully, but these errors were encountered:
It really seemed like a hectic task to manually update all the URLs after every new pull. To add some ease to my life, I created a bash script that I execute to pull the latest changes from the server and then updating the resource URLs with a single command.
I'm attaching the said script here for other people as a reference.
#!/bin/bash# Remove any existing changesecho"Removing any existing changes in the repo..."
git checkout .# Pull latest changes from the remoteecho"Fetching latest updates from remote..."
git pull
# Update resource URLsecho"Updating resource URLs in ui/dist/index.html file"
sed -i "s/\/js\//\/admin-ui\/js\//g" ui/dist/index.html
sed -i "s/\/css\//\/admin-ui\/css\//g" ui/dist/index.html
sed -i "s/\/favicon\//\/admin-ui\/favicon\//g" ui/dist/index.html
echo"Done"
Hi there,
I want to host the Admin UI dist on my own server due to some privacy policies, but I don't want to have a separate domain or subdomain for this repo. I want to define a new location in my Nginx configuration and host the original dist provided here on that particular location, let's say at
/admin-ui
.But the problem is, my implementation fails to serve the JS and CSS resources when I try to access the Admin UI on my subdirectory route. I have tried setting the base tag in my
dist/index.html
file but it is also not working.Is there any way I can clone this project directly on my server and then serve the static UI on a subdirectory route?
The text was updated successfully, but these errors were encountered: