diff --git a/examples/nextjs-14-authjs-5/.env.development b/examples/nextjs-14-authjs-5/.env.development new file mode 100644 index 000000000..53e433ff3 --- /dev/null +++ b/examples/nextjs-14-authjs-5/.env.development @@ -0,0 +1,2 @@ +# Used in dev and CI +AUTH_SECRET=9cf7510df73de5a0b1129d1d3eead6c4 \ No newline at end of file diff --git a/examples/nextjs-14-authjs-5/auth.ts b/examples/nextjs-14-authjs-5/auth.ts index 93c7c514f..828b0a41f 100644 --- a/examples/nextjs-14-authjs-5/auth.ts +++ b/examples/nextjs-14-authjs-5/auth.ts @@ -145,8 +145,6 @@ export const config = { return token }, }, - // This prevents the secret being empty during builds - secret: process.env.CI ? "CI_SECRET" : process.env.AUTH_SECRET, -} satisfies NextAuthConfig + satisfies NextAuthConfig export const { handlers, auth, signIn, signOut } = NextAuth(config) \ No newline at end of file