Skip to content

Commit

Permalink
add nextjs migration section
Browse files Browse the repository at this point in the history
  • Loading branch information
pilcrowonpaper committed Jan 25, 2024
1 parent 9a71fa2 commit 039fbd5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/pages/getting-started/nextjs-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ node --experimental-web-crypto index.js

## Update configuration

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.
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.

```ts
// next.config.ts
Expand Down
14 changes: 14 additions & 0 deletions docs/pages/upgrade-v3/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,3 +177,17 @@ Refer to these guides:

- [Upgrade OAuth setup to v3](/upgrade-v3/oauth)
- [Upgrade Password-based auth to v3](/upgrade-v3/password)

## Next.js

If you installed Oslo, mark 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 nextConfig = {
webpack: (config) => {
config.externals.push("@node-rs/argon2", "@node-rs/bcrypt");
return config;
}
};
```

0 comments on commit 039fbd5

Please sign in to comment.