Skip to content

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

Open
remorses wants to merge 1 commit intoblitz-js:canaryfrom
remorses:support-re-export
Open

Do not patch function if already patched, support reexporting page and getServerSideProps#113
remorses wants to merge 1 commit intoblitz-js:canaryfrom
remorses:support-re-export

Conversation

@remorses
Copy link
Copy Markdown

@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 }

@serg-and
Copy link
Copy Markdown

Hi, this plugin seems to no longer be maintained. Feel free to add your PR in this fork https://github.com/serg-and/superjson-next

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.

2 participants