Skip to content

armgit / E2B

Public Imported from GitHub
0

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

Open new tabs

Tomas Valentaeb9ca5f8000e
diff --git a/components/Editor/Logs/index.tsx b/components/Editor/Logs/index.tsx
index af2d60278..c2bb3617b 100644
--- a/components/Editor/Logs/index.tsx
+++ b/components/Editor/Logs/index.tsx
@@ -14,6 +14,7 @@ import Text from 'components/Text'
import Button from 'components/Button'
import DeployButton from './DeployButton'
+import Link from 'next/link'
export interface Props {
logs?: Log[]
@@ -100,17 +101,16 @@ function Logs({
/>
</div>
{deployedURL &&
- <a
+ <Link
href={deployedURL}
- className="
- underline
- "
+ className="underline"
+ target="_blank" rel="noopener noreferrer"
>
<Text
size={Text.size.S3}
text={deployedURL.substring('https://'.length)}
/>
- </a>
+ </Link>
}
{!deployedURL &&
<Text
diff --git a/components/Editor/index.tsx b/components/Editor/index.tsx
index d1bc00c75..1eddcca17 100644
--- a/components/Editor/index.tsx
+++ b/components/Editor/index.tsx
@@ -16,6 +16,7 @@ import ConnectionLine from './ConnectionLine'
import AddBlockButton from './AddBlockButton'
import Logs from './Logs'
import Routes from './Routes'
+import Link from 'next/link'
// TODO: Prod API host
const apiHost = process.env.NODE_ENV === 'development'
@@ -204,18 +205,19 @@ function Editor({ project }: Props) {
}}
/>
{deployment?.url &&
- <a
+ <Link
href={deployment.url}
className="
mt-6
underline
"
+ target="_blank" rel="noopener noreferrer"
>
<Text
text={deployment.url.substring('https://'.length)}
size={Text.size.S3}
/>
- </a>
+ </Link>
}
</div>
<Logs