#Static non-html page

10 messages · Page 1 of 1 (latest)

echo onyx
edgy kayak
#

I think you can ask this question in gpt-help

echo onyx
#

Just did, wasn't helpful :/

edgy kayak
#

are you using pages or app dir?

echo onyx
#

pages

edgy kayak
#

did you build a sitemap.xml.tsx in pages? that seems to be the go-to

echo onyx
#

Yeah but I can't get it to work statically

#

If I use getStaticProps it wraps everything with Next's html wrapper

edgy kayak
#

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?

echo onyx
#

Because I want the page prebuilt (for obvious performance reasons) and it can be served stale and refresh in the background