Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 680 Bytes

nextjs-external-packages.md

File metadata and controls

28 lines (20 loc) · 680 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'],
  },
}