Skip to content

armgit / E2B

Public Imported from GitHub
0

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

Rework assets url rewriting

Jakub Novak41476d0447ed
diff --git a/apps/docs/next.config.mjs b/apps/docs/next.config.mjs
index 26f28d881..59ccfac13 100644
--- a/apps/docs/next.config.mjs
+++ b/apps/docs/next.config.mjs
@@ -44,11 +44,8 @@ function getFilesHash(rootPath) {
const codeSnippetsDir = path.resolve('./src/code')
-const isProd = process.env.NODE_ENV === 'production'
-
/** @type {import('next').NextConfig} */
const nextConfig = {
- assetPrefix: isProd ? '/assets' : '',
pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'mdx'],
basePath: '',
webpack: config => {
diff --git a/apps/reverse-proxy/vercel.json b/apps/reverse-proxy/vercel.json
index 11e842341..dd263e74b 100644
--- a/apps/reverse-proxy/vercel.json
+++ b/apps/reverse-proxy/vercel.json
@@ -15,8 +15,8 @@
]
},
{
- "source": "/assets/:path*",
- "destination": "https://e2b-docs.vercel.app/:path*",
+ "source": "/_next/:path*",
+ "destination": "https://e2b-docs.vercel.app/_next/:path*",
"has": [
{
"type": "host",