- Implement server-side session revocation on logout - Add IP extraction utility and admin setup error handling - Improve error codes and response consistency for auth endpoints - Refine landing page redirect logic to handle transient DB outages - Update deployment documentation and configuration defaults
34 lines
823 B
TypeScript
34 lines
823 B
TypeScript
import type {NextConfig} from 'next';
|
|
|
|
const nextConfig: NextConfig = {
|
|
reactStrictMode: true,
|
|
typescript: {
|
|
ignoreBuildErrors: false,
|
|
},
|
|
// Allow access to remote image placeholder.
|
|
images: {
|
|
remotePatterns: [
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'picsum.photos',
|
|
port: '',
|
|
pathname: '/**', // This allows any path under the hostname
|
|
},
|
|
],
|
|
},
|
|
output: 'standalone',
|
|
transpilePackages: ['motion'],
|
|
webpack: (config, {dev}) => {
|
|
// HMR is disabled in AI Studio via DISABLE_HMR env var.
|
|
// Do not modify—file watching is disabled to prevent flickering during agent edits.
|
|
if (dev && process.env.DISABLE_HMR === 'true') {
|
|
config.watchOptions = {
|
|
ignored: /.*/,
|
|
};
|
|
}
|
|
return config;
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|