Skip to content

docs: Fix upload handler examples + add context#2704

Merged
chaance merged 3 commits intomainfrom
chance/docs-fixes
Apr 10, 2022
Merged

docs: Fix upload handler examples + add context#2704
chaance merged 3 commits intomainfrom
chance/docs-fixes

Conversation

@chaance
Copy link
Copy Markdown
Contributor

@chaance chaance commented Apr 8, 2022

A few of our examples incorrectly called server-only functions at the top-level scope of a route module which will result in an error when they use Node globals. This PR fixes those examples and adds clarity where needed on the "gotchas" page.

This addresses the issue raised in #2248.

A few of our examples incorrectly called server-only functions at the
top-level scope of a route module which will result in an error when
they use Node globals. The examples were fixed and clarity added where
needed. Addresses issue raised in #2248.
@chaance chaance requested a review from jacob-ebey April 8, 2022 16:00
@chaance
Copy link
Copy Markdown
Contributor Author

chaance commented Apr 8, 2022

Looks like we have some outdated snapshots on main. This PR is docs-only and safe to merge, I'll look into that separately.

@machour machour added the docs label Apr 8, 2022
Comment thread docs/pages/gotchas.md Outdated
Co-authored-by: Deren Keskin <deren.keskin@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants