Skip to content

Commit

Permalink
fix: add unsafe-proto flag to run Next.js app
Browse files Browse the repository at this point in the history
  • Loading branch information
finxol authored Dec 11, 2024
1 parent 7a8506e commit af238d4
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 first.
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 af238d4

Please sign in to comment.