Do I need to run postbuild step if I have server generated sitemap? #544
Answered
by
iamvishnusankar
alexandros-megas
asked this question in
Q&A
-
I'm in the process of upgrading the version of NextJS I'm using, and running into the following error with the
The postbuild step was setup by someone who is no longer with our team, so I wonder if I even need this, since our project also has the following in export const getServerSideProps: GetServerSideProps = async (ctx) => {
return getServerSideSitemap(ctx, [...]);
};
// Default export to prevent next.js errors
export default (): void => {}; If not, I can get around the error by simply removing the postbuild step. |
Beta Was this translation helpful? Give feedback.
Answered by
iamvishnusankar
Dec 18, 2022
Replies: 1 comment
-
@alexandros-megas No, you don't need postbuild script if your use case is only server side sitemap generation. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
iamvishnusankar
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@alexandros-megas No, you don't need postbuild script if your use case is only server side sitemap generation.