Skip to content

Commit

Permalink
refactor: Update link URLs to use environment variable for client URL
Browse files Browse the repository at this point in the history
  • Loading branch information
4lysson-a committed Jul 21, 2024
1 parent be64bd5 commit e545694
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/pages/Dash/Clip/LinkMenu/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import useAuth from '@/hooks/zustand/(private)/useAuth';
export default function LinkMenu() {
const [companys] = useAuth((s) => s.companys);

const link = `https://tanamao-app.vercel.app/${companys.id}`;
const link = `${import.meta.env.VITE_CLIENT_URL}/${companys.id}`;

function handleCopy() {
try {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/Dash/Clip/QrCode/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default function QrCode() {
type: 'png',
cornersSquareOptions: options.cornersSquareOptions,
image: options.logo,
data: `https://tanamao-app.vercel.app/${companys[0].id}`,
data: `${import.meta.env.VITE_CLIENT_URL}/${companys[0].id}`,
dotsOptions: options.dotsOptions,
backgroundOptions: {
color: 'transparent'
Expand Down

0 comments on commit e545694

Please sign in to comment.