handle assets and requests_pathname_prefix
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 24.4k
- Fork
- 2.3k
- Merge medio
- 2g 7h
- PR unite (30g)
- 13
Descrizione
So I currently have an API Gateway serving my Dash app under the /dev/ base path.
I have specified my Dash.dash app with
app.config.update({
# as the proxy server will remove the prefix
"routes_pathname_prefix": "/",
# the front-end will prefix this string to the requests
# that are made to the proxy server
'requests_pathname_prefix': '/dev/'
})
and most the app renders fine however, I noticed that the files in my assets directory are not being found since when the app loads, its looking in /assets/ instead of /dev/assets.
This seems like a quick fix on my part, but I'm not sure where to start since this library is so new to me.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia riproducendo l'app Dash dietro un API Gateway al percorso di base /dev/ usando le impostazioni mostrate routes_pathname_prefix e requests_pathname_prefix. Traccia il modo in cui vengono generati gli URL della directory assets e verifica che le richieste agli asset usino /dev/assets, mentre il comportamento esistente del percorso radice rimanga corretto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- web-dev
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 42/100