Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not patch function if already patched, support reexporting page and getServerSideProps #113

Open
wants to merge 1 commit into
base: canary
Choose a base branch
from

Conversation

remorses
Copy link

@remorses remorses commented Nov 14, 2024

Currently if you reexport a page and gssp function you will get an error, because the props are serialized 2 times

This is an example page with the problem:

import Page from './page'
import { getServerSideProps } from './page'

export default Page
export { getServerSideProps }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant