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

Example does not run on vercel edge? #23

Open
yongyi520 opened this issue Sep 9, 2023 · 0 comments
Open

Example does not run on vercel edge? #23

yongyi520 opened this issue Sep 9, 2023 · 0 comments

Comments

@yongyi520
Copy link

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
Screenshot 2023-09-09 at 14 31 39

Everything works fine on nodejs serverless, but when it's on edge it throws error somehow

Is there a workaround for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant