Skip to content

Example does not run on vercel edge? #23

@yongyi520

Description

@yongyi520

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions