gemini-codrawing / next.config.js
Trudy's picture
Configure Next.js to handle only base64 strings without file saving
3a14a3f
raw
history blame
577 Bytes
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
output: 'standalone',
// Ensure no file system writes for image handling
images: {
unoptimized: true, // Disable Next.js automatic image optimization which writes to disk
domains: [], // No external image domains needed as we're using base64
remotePatterns: [] // No remote patterns needed
},
// Additional security measures
experimental: {
serverComponentsExternalPackages: [] // No external packages that might do file I/O
}
};
module.exports = nextConfig;