From 0bcf02bc924b11774abebda3ed6714fcaa82a6cf Mon Sep 17 00:00:00 2001 From: Colin Ozanne Date: Thu, 12 Dec 2024 13:39:49 +0000 Subject: [PATCH] fix: add `unsafe-proto` flag to run Next.js app (#1255) --- examples/tutorials/next.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/examples/tutorials/next.md b/examples/tutorials/next.md index 0bd0d807..1cf9f9ed 100644 --- a/examples/tutorials/next.md +++ b/examples/tutorials/next.md @@ -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