#Static non-html page
10 messages · Page 1 of 1 (latest)
I think you can ask this question in gpt-help
Just did, wasn't helpful :/
are you using pages or app dir?
pages
did you build a sitemap.xml.tsx in pages? that seems to be the go-to
Yeah but I can't get it to work statically
If I use getStaticProps it wraps everything with Next's html wrapper
then, from what I have seen, this xml nor any other non-html page should be static. so, why do you want a static sitemap with next.js?
Because I want the page prebuilt (for obvious performance reasons) and it can be served stale and refresh in the background