mirror of
https://github.com/Xevion/linkpulse.git
synced 2025-12-07 03:15:37 -06:00
fix browser URL, prod is relative URL
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { useEffect, useState } from 'react';
|
||||
|
||||
const backendUrl = `http://${import.meta.env.VITE_BACKEND_TARGET}/api`;
|
||||
const backendUrl = import.meta.env.PROD ? '/api' : `http://${import.meta.env.VITE_BACKEND_TARGET}/api`;
|
||||
|
||||
const Code = (props: JSX.IntrinsicElements['code']) => (
|
||||
<code
|
||||
|
||||
Reference in New Issue
Block a user