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

feat: allow SSR and SSG with getLocaleProps #25

Merged
merged 2 commits into from Aug 17, 2022
Merged

Conversation

QuiiBz
Copy link
Owner

@QuiiBz QuiiBz commented Aug 17, 2022

Closes #23

This PR renames getLocaleStaticProps to getLocaleProps and makes it possible to use with both getStaticProps or getServerSideProps.

To not introduce a breaking change, the existing getLocaleStaticProps still exists and forward to getLocaleProps

@QuiiBz QuiiBz added the enhancement New feature or request label Aug 17, 2022
@QuiiBz QuiiBz merged commit cbe3ff3 into main Aug 17, 2022
@QuiiBz QuiiBz deleted the fix/get-locale-props branch August 17, 2022 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Usage with SSR (getServerSideProps) instead of SSG?
1 participant