Skip to content

Config argument for baseUrl #2759

Closed
Closed
@chriddyp

Description

@chriddyp

Right now, the base url for the /external endpoint is taken from the window. Could we add an option to the config as well? That'd make it easier for Dash users to point to their On-Premise instances:

var baseUrl = (window.PLOTLYENV && window.PLOTLYENV.BASE_URL) || 'https://plot.ly';

something like

 var baseUrl = (
    (window.PLOTLYENV && window.PLOTLYENV.BASE_URL) || 
    config.plotly_server_url ||
    'https://plot.ly';

cc @cldougl

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions