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

Export all from page exports #75

Merged
merged 2 commits into from
Mar 12, 2020
Merged

Export all from page exports #75

merged 2 commits into from
Mar 12, 2020

Conversation

aralroca
Copy link
Owner

@BjoernRave When the new release of next.js was made, it was adapted to instead of support only Page.getInitialProps, to support whatever via Page.whatEver, with the idea to allow the new methods: getServerSideProps, getStaticProps, getStaticPaths. However, these methods are defined differently, they are just export with a normal export.

In order to fix the support of these new methods. I added the:

export * from '${prefix}/${clearPageExt(page)}'

To export all from page exports. In this way, also we are covered to coming features as export function Head() {} or others.

@aralroca aralroca self-assigned this Mar 12, 2020
@BjoernRave
Copy link
Contributor

@aralroca nice :)

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.

None yet

2 participants