Skip to content

armgit / E2B

Public Imported from GitHub
0

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

Fix asset prefix for local dev

Jakub Novaka894ad1e44d7
diff --git a/apps/docs/next.config.mjs b/apps/docs/next.config.mjs
index d9c9d5cf2..26f28d881 100644
--- a/apps/docs/next.config.mjs
+++ b/apps/docs/next.config.mjs
@@ -44,9 +44,11 @@ function getFilesHash(rootPath) {
const codeSnippetsDir = path.resolve('./src/code')
+const isProd = process.env.NODE_ENV === 'production'
+
/** @type {import('next').NextConfig} */
const nextConfig = {
- assetPrefix: '/assets',
+ assetPrefix: isProd ? '/assets' : '',
pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'mdx'],
basePath: '',
webpack: config => {