How to use with next export? #390
BasicPixel
started this conversation in
General
Replies: 1 comment
-
UPDATE: It now works as expected, except I need to "scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint",
"postbuild": "next-sitemap && next export"
}, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to use next-sitemap on a website with static HTML export, and I am having two problems:
getServerSitemap
, becausegetServerSideProps
is not supported withnext export
.sitemap.xml
file is not included in the exportout
directory, so it cannot be accessed in production.I would appreciate if anyone has solutions to one of or both of the problems. Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions