We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 611f21c commit b0cb5f3Copy full SHA for b0cb5f3
reflex/sitemap.py
@@ -5,7 +5,6 @@
5
from fastapi import Response
6
from xml.etree.ElementTree import Element, SubElement, tostring
7
from xml.dom import minidom
8
-import reflex as rx
9
10
11
def generate_xml(links: List[Dict[str, Any]]) -> str:
@@ -24,7 +23,6 @@ def generate_xml(links: List[Dict[str, Any]]) -> str:
24
23
25
26
def generate_sitemap(app: "rx.App") -> str:
27
- import reflex as rx
28
29
links = []
30
for route, component in app.pages.items():
@@ -56,7 +54,6 @@ def generate_sitemap(app: "rx.App") -> str:
56
54
57
55
58
async def serve_sitemap(app: "rx.App") -> Response:
59
60
61
sitemap_content = generate_sitemap(app)
62
domain = get_config().deploy_url or "http://localhost:3000"
0 commit comments