Skip to content

Commit

Permalink
Merge pull request #28 from 4lysson-a/dev
Browse files Browse the repository at this point in the history
refactor: Update link URLs to use environment variable for client URL
  • Loading branch information
4lysson-a authored Jul 21, 2024
2 parents 6016d3b + e545694 commit da62703
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 da62703

Please sign in to comment.