Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Modify next config for Docker build

Tomas Valenta2886eed61709
diff --git a/next.config.js b/next.config.js
index 2398a09ab..53c715336 100644
--- a/next.config.js
+++ b/next.config.js
@@ -1,5 +1,19 @@
+/** @type {import('next').NextConfig} */
+const fastDockerBuild = {
+ compress: false,
+ productionBrowserSourceMaps: false,
+ eslint: {
+ ignoreDuringBuilds: true,
+ },
+ optimizeFonts: false,
+ typescript: {
+ ignoreBuildErrors: true,
+ },
+}
+
/** @type {import('next').NextConfig} */
const nextConfig = {
+ ...process.env.BUILD === 'docker' && fastDockerBuild,
swcMinify: true,
experimental: {
swcPlugins: [['next-superjson-plugin', {}]],