Trudy commited on
Commit
3a14a3f
·
1 Parent(s): c23e9bf

Configure Next.js to handle only base64 strings without file saving

Browse files
Files changed (1) hide show
  1. next.config.js +11 -1
next.config.js CHANGED
@@ -1,7 +1,17 @@
1
  /** @type {import('next').NextConfig} */
2
  const nextConfig = {
3
  reactStrictMode: true,
4
- output: 'standalone'
 
 
 
 
 
 
 
 
 
 
5
  };
6
 
7
  module.exports = nextConfig;
 
1
  /** @type {import('next').NextConfig} */
2
  const nextConfig = {
3
  reactStrictMode: true,
4
+ output: 'standalone',
5
+ // Ensure no file system writes for image handling
6
+ images: {
7
+ unoptimized: true, // Disable Next.js automatic image optimization which writes to disk
8
+ domains: [], // No external image domains needed as we're using base64
9
+ remotePatterns: [] // No remote patterns needed
10
+ },
11
+ // Additional security measures
12
+ experimental: {
13
+ serverComponentsExternalPackages: [] // No external packages that might do file I/O
14
+ }
15
  };
16
 
17
  module.exports = nextConfig;