How to read the base URL?

That’s what I’m working towards, setting up a .net core backend purely to handle config changes and make it easier to access other things like logging/monitoring etc… I haven’t quite hit on the right build setup yet, webpack seems like the common path but I prefer requirejs just now.