-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: needs runtime
node-fetch
import
`import ... from "node-fetch"` will throw in Edge runtime and browser because the library attempts to make `node:...` package imports. The only way to consume this package is to load it when it's needed with `await import(...)`, and not as an import statement at the top of the context. It is the difference between always loading it and only using it when needed, and only loading it and using it when needed. closes #50 cc @transmissions11
- Loading branch information
Showing
2 changed files
with
16 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 comment
on commit fefa768
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
openai-streams – ./
openai-streams-git-master-spellcraft.vercel.app
openai-streams-spellcraft.vercel.app
openai-streams.vercel.app
Whoops!