Skip to content

armgit / E2B

Public Imported from GitHub
0

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

limit asset prefixing to production

Ben Fornefeld8903a8b5f533
diff --git a/apps/web/next.config.mjs b/apps/web/next.config.mjs
index 7f78735e5..003ed1c3b 100644
--- a/apps/web/next.config.mjs
+++ b/apps/web/next.config.mjs
@@ -48,7 +48,10 @@ const codeSnippetsDir = path.resolve('./src/code')
const nextConfig = {
pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'mdx'],
basePath: '',
- assetPrefix: `https://${process.env.VERCEL_URL}`,
+ assetPrefix:
+ process.env.NODE_ENV === 'production'
+ ? `https://${process.env.VERCEL_URL}`
+ : undefined,
headers: async () => [
{
source: '/:path*',