diff --git a/docs/pages/getting-started/nextjs-app.md b/docs/pages/getting-started/nextjs-app.md index b1676ca9a..2b01cb1ba 100644 --- a/docs/pages/getting-started/nextjs-app.md +++ b/docs/pages/getting-started/nextjs-app.md @@ -12,8 +12,6 @@ Install Lucia using your package manager of your choice. While not strictly nece npm install lucia oslo ``` -**`oslo/password` does NOT work with Turbopack.** - ## Initialize Lucia Import `Lucia` and initialize it with your adapter. Refer to the [Database](/database) page to learn how to set up your database and initialize the adapter. Make sure you configure the `sessionCookie` option and register your `Lucia` instance type. @@ -60,7 +58,7 @@ node --experimental-web-crypto index.js ## Update configuration -If you've installed Oslo, mark its dependencies as external to prevent it from getting bundled. This is only required when using the `oslo/password` module. +If you're planning to use `oslo/password` for hashing passwords, mark its dependencies as external to prevent it from getting bundled. ```ts // next.config.ts @@ -72,6 +70,14 @@ const nextConfig = { }; ``` +In addition, if you're deploying to Vercel, you may need to manually install its dependencies. + +``` +npm install @node-rs/argon2 @node-rs/bcrypt +``` + +Currently, `oslo/password` cannot be used with Turbopack. + ## Next steps You can learn all the concepts and APIs by reading the [Basics section](/basics/sessions) in the docs. If you prefer writing code immediately, check out the [Tutorials](/tutorials) page or the [examples repository](https://github.com/lucia-auth/examples/tree/main).