Skip to content

Commit

Permalink
fix: add unsafe-proto flag to run Next.js app (#1255)
Browse files Browse the repository at this point in the history
  • Loading branch information
finxol authored Dec 12, 2024
1 parent 1713b81 commit 0bcf02b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions examples/tutorials/next.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@ to install the dependencies
deno install
```

Next.js has some dependencies that still rely on `Object.prototype.__proto__`,
so you need to allow it. In a new `deno.json` file, add the following lines:

```json deno.json
{
"unstable": ["unsafe-proto"]
}
```

Now you can serve your new Next.js app:

```sh
Expand Down

0 comments on commit 0bcf02b

Please sign in to comment.