Example does not run on vercel edge?
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- nextjs, typescript
Research direction
Clone the linked next-contentlayer-example repository, apply the reported runtime = 'edge' setting to the pages, and deploy it to Vercel to reproduce the EvalError. Compare the Edge and Node.js deployments; the work is done when the example deploys and runs successfully on the Edge runtime or the limitation and workaround are documented.
Written by the indexing model from the issue text.
Description
Here is the repo:
https://github.com/yongyi520/contentlayer-example
I have cloned this repo and simply added
export const runtime = 'edge' // 'nodejs' (default) | 'edge'
on all pages
When I tried to deploy it to vercel, I got this issue:
EvalError: Code generation from strings disallowed for this context
Everything works fine on nodejs serverless, but when it's on edge it throws error somehow
Is there a workaround for this?
- Dominant language
- TypeScript
- Stars
- 104
- Forks
- 37
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from contentlayerdev/next-contentlayer-example
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
contentlayerdev/next-contentlayer-example#21 · 6 comments · 2 reactions ·
-
Difficulty 1/5 Under an hour Newbie friendliness 35/100
-
MDX Image example Open
Difficulty 3/5 1-2 days Newbie friendliness 35/100
contentlayerdev/next-contentlayer-example#13 · 8 reactions ·
All issues in contentlayerdev/next-contentlayer-example
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
safetrustcr/dApp-SafeTrust#426 ·
-
area:workflow bug ready-for-agent
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
fil-donadoni/tolaria#4409 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Fission-AI/OpenSpec#1960 ·
-
Add dependabot Open
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
corsairdev/corsair#1764 ·