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

is V1 support getStaticProps runtime variable ? #103

Open
aNyMoRe0505 opened this issue Jan 4, 2024 · 0 comments
Open

is V1 support getStaticProps runtime variable ? #103

aNyMoRe0505 opened this issue Jan 4, 2024 · 0 comments

Comments

@aNyMoRe0505
Copy link

version: 1.7.4

reproduce repo: https://github.com/aNyMoRe0505/runtime-env-test

steps: clone -> npm ci -> npm run build -> npm run start -> open localhost:3000/client-side

Thank you for creating this repo.
I'd like to ask if getStaticProps supports runtime environment variables.
My understanding is that variables need to be determined during the build, making it challenging to achieve Build once, deploy many.

However, I noticed that version 1 supports getStaticProps, so I'm wondering if I've set something up incorrectly. Thank you.

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

No branches or pull requests

1 participant