bud.setPublicUrl
bud.setPublicUrl is used to specify the site-accessible URL for the dev server (if it differs from the internal URL).
For example: a dockerized app that needs to be accessible from the host at http://example.test
but serves over http://0.0.0.0:8080
.
Usage
Using a string:
export default async bud => {
bud.setPublicUrl(`http://example.test`)
}
Using a URL:
export default async bud => {
bud.setPublicUrl(new URL(`http://example.test`))
}