Skip to content

Files

Latest commit

63ae99e · Apr 23, 2025

History

History
33 lines (23 loc) · 914 Bytes

nextjs-external-packages.md

File metadata and controls

33 lines (23 loc) · 914 Bytes

Next.js

Using @cipherstash/protect with Next.js? You need to opt-out from the Server Components bundling and use native Node.js require instead.

Using version 15 or later

next.config.ts configuration:

const nextConfig = {
  ...
  serverExternalPackages: ['@cipherstash/protect'],
}

Using version 14

next.config.mjs configuration:

const nextConfig = {
  ...
  experimental: {
    serverComponentsExternalPackages: ['@cipherstash/protect'],
  },
}

Didn't find what you wanted?

Click here to let us know what was missing from our docs.