Closed SplittyDev closed 1 year ago
Enable the NextJS edge runtime for npm routes.
edge
npm
Exporting the GitHub util from @/utils breaks the edge runtime, because @octokit/rest does things that are incompatible with the edge runtime.
GitHub
@/utils
@octokit/rest
Import the Badge and Npm utils directly, without going through the utils/index.ts.
Badge
Npm
utils/index.ts
This PR also updates the README.md and improves documentation.
README.md
Closes #12
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Goal
Enable the NextJS
edge
runtime fornpm
routes.Issues
Exporting the
GitHub
util from@/utils
breaks theedge
runtime, because@octokit/rest
does things that are incompatible with theedge
runtime.Solution
Import the
Badge
andNpm
utils directly, without going through theutils/index.ts
.Misc
This PR also updates the
README.md
and improves documentation.Closes #12