Skip to content

Commit 1663e25

Browse files
committed
refactor: remove unused getHostname function and related screenshot URL logic
1 parent b6d54f7 commit 1663e25

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

vibes.diy/pkg/app/routes/vibe-instance-list.tsx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React, { useState, useEffect, useRef } from "react";
22
import { useParams, useNavigate, useSearchParams } from "react-router";
33
import { useVibeInstances } from "../hooks/useVibeInstances.js";
4-
import { VibesDiyEnv } from "../config/env.js";
54
import { useAuth } from "@clerk/clerk-react";
65
import LoggedOutView from "../components/LoggedOutView.js";
76
import PublishedVibeCard from "../components/PublishedVibeCard.js";
@@ -120,17 +119,6 @@ function VibeInstancesListContent() {
120119
setEditDescription(currentDescription);
121120
};
122121

123-
// Get hosting domain for screenshot URL
124-
const getHostname = (url: string): string => {
125-
try {
126-
return new URL(url).hostname;
127-
} catch {
128-
return "vibesdiy.app";
129-
}
130-
};
131-
const hostname = getHostname(VibesDiyEnv.APP_HOST_BASE_URL());
132-
const screenshotUrl = `https://${titleId}.${hostname}/screenshot.png`;
133-
134122
return (
135123
<div className="page-grid-background grid-background min-h-screen min-h-[100svh] min-h-[100dvh] w-full">
136124
<div className="flex-1 px-8 py-8">

0 commit comments

Comments
 (0)