Skip to content

Commit

Permalink
Merge pull request #103 from vigneshshettyin/new_link
Browse files Browse the repository at this point in the history
changes
  • Loading branch information
VijeshVS authored Jun 1, 2024
2 parents 3a4af2f + dc19708 commit e8c84dd
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ REDIS_URL="redis://localhost:6379/0"
NEXTAUTH_SECRET="test_secret"
GOOGLE_CLIENT_ID="test-app-google.apps.googleusercontent.com"
GOOGLE_CLIENT_SECRET="test-secret"
REDIRECT_URL="https://eurl.vshetty.dev"
REDIRECT_URL="https://eurl.dev"
2 changes: 1 addition & 1 deletion app/app/(dashboard)/links/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default function Page(params : any) {
title: 'Sample Title'
}

const REDIRECT_URL:string = process.env.REDIRECT_URL || "https://eurl.vshetty.dev";
const REDIRECT_URL:string = process.env.REDIRECT_URL || "https://eurl.dev";
const [title,setTitle] = useState<string | null>(fetchLink.title);
const [shortCode,setShortcode] = useState<string>(fetchLink.short_code)
const shortLink:string = `${REDIRECT_URL}/${shortCode}`
Expand Down
2 changes: 1 addition & 1 deletion components/CardComponents/LinkCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function LinkCard({
}: {
link: linkType;
}) {
const REDIRECT_URL:string = process.env.REDIRECT_URL || "https://eurl.vshetty.dev";
const REDIRECT_URL:string = process.env.REDIRECT_URL || "https://eurl.dev";
const [shortCode,setShortcode] = useState<string>(link.short_code);
const shortLink:string = `${REDIRECT_URL}/${shortCode}`
const [title,setTitle] = useState<string | null>(link.title)
Expand Down
2 changes: 1 addition & 1 deletion components/CardComponents/LinkCardDemoComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { QrPopup } from "../DialogComponents/QrPopup";
import { copyToClipboard } from "@/lib/utils";
import { publicLinkType } from "@/interfaces/types";

const REDIRECT_URL = process.env.REDIRECT_URL || "https://eurl.vshetty.dev";
const REDIRECT_URL = process.env.REDIRECT_URL || "https://eurl.dev";

export function LinkCardComponent({
publicLink,
Expand Down
2 changes: 1 addition & 1 deletion components/CardComponents/QRCodeCardComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const months = [

export function QRCodeCardComponent({ qrcode }: { qrcode: any }) {
const qrCodeRef = useRef(null);
const REDIRECT_URL = process.env.REDIRECT_URL || "https://eurl.vshetty.dev";
const REDIRECT_URL = process.env.REDIRECT_URL || "https://eurl.dev";
const shortLink = `${REDIRECT_URL}/${qrcode.short_code}`;

function downloadQRCode(format:string) {
Expand Down
2 changes: 1 addition & 1 deletion components/DialogComponents/LinkShareDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function LinkShareDialog({children,link}:{
link: linkType
}) {

const REDIRECT_URL:string = process.env.REDIRECT_URL || "https://eurl.vshetty.dev";
const REDIRECT_URL:string = process.env.REDIRECT_URL || "https://eurl.dev";
const shortLink:string = `${REDIRECT_URL}/${link.short_code}`

function copyToClipboard(){
Expand Down

0 comments on commit e8c84dd

Please sign in to comment.