Idea would be to use something like the window.env and write the BUBBLY_API to there.
Then access this using some js, e.g.:
const bubblyAPI = () => { return window["env"] ? window["env"]["bubblyAPI"] : "" }
export { bubblyAPI }
Right now the static files are hosted with Go using go:embed and one open question is how to add to the window.env using embedded files.
Idea would be to use something like the
window.envand write theBUBBLY_APIto there.Then access this using some js, e.g.:
Right now the static files are hosted with Go using
go:embedand one open question is how to add to thewindow.envusing embedded files.