Files
CRM_ENVR/next.config.ts
T

27 lines
618 B
TypeScript

import type { NextConfig } from "next"
import crypto from "crypto"
// In development, generate a random JWT secret on every server start.
// This invalidates all previously issued JWT tokens, ensuring the user
// must re-authenticate after each dev server restart.
if (process.env.NODE_ENV === "development") {
process.env.JWT_SECRET = crypto.randomBytes(32).toString("hex")
}
const nextConfig: NextConfig = {
eslint: {
ignoreDuringBuilds: false,
},
images: {
remotePatterns: [
{
protocol: "https",
hostname: "ui-avatars.com",
},
],
},
}
export default nextConfig