From 641bbd94ce8a3d051d8fec9bbd38fc459fa01da6 Mon Sep 17 00:00:00 2001 From: pilcrowOnPaper Date: Thu, 25 Jan 2024 12:14:38 +0900 Subject: [PATCH] update docs --- docs/pages/getting-started/nextjs-app.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/pages/getting-started/nextjs-app.md b/docs/pages/getting-started/nextjs-app.md index b9ae8ed70..b52a3a5ba 100644 --- a/docs/pages/getting-started/nextjs-app.md +++ b/docs/pages/getting-started/nextjs-app.md @@ -6,7 +6,7 @@ title: "Getting started in Next.js App router" ## Installation -Install Lucia using your package manager of your choice. While not strictly necessary, we recommend installing [Oslo](https://oslo.js.org), which Lucia is built on, for various auth utilities (which a lot of the guides use). +Install Lucia using your package manager of your choice. While not strictly necessary, we recommend installing [Oslo](https://oslo.js.org), which Lucia is built on, for various auth utilities (which a lot of the guides in the docs use). ``` npm install lucia@beta oslo @@ -56,15 +56,16 @@ globalThis.crypto = webcrypto as Crypto; node --experimental-web-crypto index.js ``` -## Configure +## Update configuration -If you've installed Oslo, we recommend marking the package external to prevent it from getting bundled. Strictly speaking, this is only required when using `oslo/password` module. +If you've installed Oslo, we recommend marking its dependencies as external to prevent it from getting bundled. This is only required when using the `oslo/password` module. ```ts // next.config.ts -const config = { - experimental: { - serverComponentsExternalPackages: ["oslo"] +const nextConfig = { + webpack: (config) => { + config.externals.push("@node-rs/argon2", "@node-rs/bcrypt"); + return config; } }; ```