diff --git a/frontend/src/components/LinkList.tsx b/frontend/src/components/LinkList.tsx index 40db5c1..1911889 100644 --- a/frontend/src/components/LinkList.tsx +++ b/frontend/src/components/LinkList.tsx @@ -82,7 +82,7 @@ export function LinkList({ refresh = 0 }: LinkListProps) { const handleCopy = (shortCode: string) => { // Use import.meta.env.VITE_BASE_URL or fall back to window.location.origin - const baseUrl = import.meta.env.VITE_API_URL || window.location.origin + const baseUrl = window.location.origin navigator.clipboard.writeText(`${baseUrl}/${shortCode}`) toast({ description: "Link copied to clipboard", diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index 4b1c051..4b79322 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -5,14 +5,14 @@ import path from "path" export default defineConfig(() => ({ plugins: [react(), tailwindcss()], - server: { + /*server: { proxy: { '/api': { target: process.env.VITE_API_URL || 'http://localhost:8080', changeOrigin: true, }, }, - }, + },*/ resolve: { alias: { "@": path.resolve(__dirname, "./src"),