@@ -1 +1,2 @@
|
||||
VITE_API_URL=https://hereconnect.condev.ru/api
|
||||
VITE_API_URL=https://hereconnect.condev.ru/api
|
||||
VITE_READ_BASE_URL=https://r.condev.ru
|
||||
@@ -13,7 +13,10 @@ export const createQrCodeDocument = async (
|
||||
>,
|
||||
) => {
|
||||
const uri = Math.abs(Date.now() - EPOHE).toString(36)
|
||||
const url = new URL(`/read/${uri}`, location.origin).toString()
|
||||
const url = new URL(
|
||||
`${import.meta.env.VITE_READ_BASE_URL || '/read'}/${uri}`,
|
||||
location.origin,
|
||||
).toString()
|
||||
|
||||
const qrCodeDoc: QRCodeDocument = {
|
||||
_id: `qr_code:${uri}`,
|
||||
|
||||
Reference in New Issue
Block a user