rictuar
September 26, 2023, 10:54pm
1
My work wants me to deploy an app using R-Studio
The problem is that R-studio does not deploy the app on the base URL. THere is some documentation about hard-coding the base-url, but i do not know what the URL will be before it is deployed!
Any thoughts?
notice how the mouse-over on the link gives a url that is NOT where the app is hosted
rictuar
September 26, 2023, 11:22pm
2
this is hacky af but, basically, the links are static… so after deploying i can update the app like
app.py will have links like
dbc.NavLink('Home', href='/content/a537f01f-de6f-4093-b216-89fef5cfba1b',style = {'color': 'white','font-weight':'bold'}),
pages are registered like
dash.register_page(__name__, path='/dataset-manager')
Hi @rictuar
See example # 2 which demos a minimal example of a multi page app that uses a pathname prefix when the app is deployed: