mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-31 21:11:44 +02:00
Fix Roadmap Share Link (#4522)
This commit is contained in:
@@ -10,9 +10,11 @@ type CopyRoadmapLinkProps = {
|
||||
export function CopyRoadmapLink(props: CopyRoadmapLinkProps) {
|
||||
const { roadmapId, onClose } = props;
|
||||
|
||||
const shareLink = `${
|
||||
import.meta.env.PUBLIC_ROADMAP_WEB_URL
|
||||
}/r?id=${roadmapId}`;
|
||||
const baseUrl = import.meta.env.DEV
|
||||
? 'http://localhost:3000'
|
||||
: 'https://roadmap.sh';
|
||||
const shareLink = `${baseUrl}/r?id=${roadmapId}`;
|
||||
|
||||
const { copyText, isCopied } = useCopyText();
|
||||
|
||||
return (
|
||||
|
Reference in New Issue
Block a user