From 0bcf02bc924b11774abebda3ed6714fcaa82a6cf Mon Sep 17 00:00:00 2001 From: Colin Ozanne Date: Thu, 12 Dec 2024 13:39:49 +0000 Subject: [PATCH 1/2] 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 From 73dc575cd43bb15b17cdcbea628e29ff5c40f889 Mon Sep 17 00:00:00 2001 From: Josh Collinsworth Date: Thu, 12 Dec 2024 08:42:20 -0600 Subject: [PATCH 2/2] Minor styling updates; add aliases --- _components/Sidebar.tsx | 2 +- _components/ToTop.tsx | 4 +++- _includes/raw.tsx | 2 +- deno.json | 4 +++- overrides.css | 18 +++++------------- 5 files changed, 13 insertions(+), 17 deletions(-) diff --git a/_components/Sidebar.tsx b/_components/Sidebar.tsx index 51200195..1439973a 100644 --- a/_components/Sidebar.tsx +++ b/_components/Sidebar.tsx @@ -232,7 +232,7 @@ function SidebarTopNav( return (
  • - Back to top + + Back to top + ); } diff --git a/_includes/raw.tsx b/_includes/raw.tsx index be16d7af..deb2d588 100644 --- a/_includes/raw.tsx +++ b/_includes/raw.tsx @@ -12,7 +12,7 @@ export default function Raw(props: Lume.Data, helpers: Lume.Helpers) { id="sidebar" data-open="false" > -