-
First Check
Example Codefrom nicegui import ui, page
from fastapi import FastAPI
app = FastAPI()
@ui.page("/")
@ui.page("/{_:path}")
def router():
page_router = ui.sub_pages({
'/home': home,
'/other': other,
}, root_path= "/mount")
#@ui.page("/other")
def other():
ui.label("Other Site")
ui.button(text="Go to home", on_click=lambda:ui.navigate.to("/home"))
#@ui.page("/home")
def home():
ui.label("Home Site")
ui.button(text="Go to other", on_click=lambda:ui.navigate.to("/other"))
ui.run_with(app, mount_path="/mount") DescriptionConfigI run my NiceGUI web server with FastAPI for my API requests on a Uvicorn server. Everything runs in a Docker container. ProblemThe same error occurs with both the reverse proxy and the Additional InfoI don’t know if it’s my mistake or a problem within the My testsI tried many things, like stripping the extra path from the URL in Caddy, using I also tested Adding the I hope someone can help with my problems. NiceGUI Version2.23.3 Python Version3.13.7 BrowserSafari, Firefox Operating SystemLinux Additional ContextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yes. There is room for improvement. I identified the issue and will prepare a PR later in the day. |
Beta Was this translation helpful? Give feedback.
Yes. There is room for improvement. I identified the issue and will prepare a PR later in the day.