def DeployUrlSample() -> None:
    """Sample app for testing config deploy_url is correct (in tests)."""
    import reflex as rx

    class State(rx.State):
        @rx.event
        def goto_self(self):
            if (deploy_url := rx.config.get_config().deploy_url) is not None:
                return rx.redirect(deploy_url)
            return None

    def index():
        return rx.fragment(
            rx.button("GOTO SELF", on_click=State.goto_self, id="goto_self")
        )

    app = rx.App()
    app.add_page(index)
Sample app for testing config deploy_url is correct (in tests).
tests/integration/test_deploy_url.py