Skip to content
This repository was archived by the owner on Mar 2, 2022. It is now read-only.
This repository was archived by the owner on Mar 2, 2022. It is now read-only.

Bubbly UI is hardcoded to use http://localhost:8111 #147

@jlarfors

Description

@jlarfors

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions