Using @cipherstash/protect
with Next.js? You need to opt-out from the Server Components bundling and use native Node.js require
instead.
next.config.ts
configuration:
const nextConfig = {
...
serverExternalPackages: ['@cipherstash/protect'],
}
next.config.mjs
configuration:
const nextConfig = {
...
experimental: {
serverComponentsExternalPackages: ['@cipherstash/protect'],
},
}