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

chore(docs): Add fetch example with use of apiUrl env variable #11750

Merged
merged 6 commits into from
Dec 12, 2024

Conversation

dennemark
Copy link
Contributor

The docs were missing an explanation on how to use environment variables to fetch a custom function from frontend.

The docs were missing an explanation on how to use environment variables to fetch a custom function from frontend.
@dennemark dennemark changed the title Add fetch example with use of apiUrl env variable chore(docs): Add fetch example with use of apiUrl env variable Dec 6, 2024
@dennemark
Copy link
Contributor Author

Is it actually better to use window or globalThis for the env variable? I guess window is not acailable in every environment.

@Tobbe
Copy link
Member

Tobbe commented Dec 12, 2024

Is it actually better to use window or globalThis for the env variable? I guess window is not acailable in every environment.

Should definitely be globalThis 🙂

@Tobbe Tobbe added the release:docs This PR only updates docs label Dec 12, 2024
@Tobbe Tobbe added this to the chore milestone Dec 12, 2024
@Tobbe Tobbe enabled auto-merge (squash) December 12, 2024 14:12
@Tobbe Tobbe merged commit 3a65526 into redwoodjs:main Dec 12, 2024
45 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:docs This PR only updates docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants