diff --git a/src/components/DockerLink.astro b/src/components/DockerLink.astro
index cd172f0..e775817 100644
--- a/src/components/DockerLink.astro
+++ b/src/components/DockerLink.astro
@@ -2,32 +2,33 @@
const { WEB_PORT = 8080 } = import.meta.env;
interface Props {
- href: string;
- title?: string;
+ href: string;
+ title?: string;
}
-
-const href = (() => {
-
- let href = Astro.props.href;
-
- if (href.startsWith("http://") || href.startsWith("https://")) {
- return astro.props.href;
- }
-
- if (href.startsWith("/")) {
- href = href.slice(1);
- }
-
- const base = "http://localhost";
- if (!WEB_PORT || WEB_PORT === "80") {
- return `${base}/${href}`;
- }
-
- return `${base}:${WEB_PORT}/${href}`;
-
-})();
---
-
- Docker: {Astro.props.title ?? href}
-
+
+
+ Docker: {Astro.props.title}
+
+
+
+