remove base url
Main daploy / deploy (push) Successful in 46s

This commit is contained in:
2024-11-26 21:40:31 +02:00
parent 105b1173a1
commit 27f3aa3344
4 changed files with 4 additions and 6 deletions
+1 -2
View File
@@ -13,8 +13,7 @@ export const createQrCodeDocument = async (
>,
) => {
const uri = Math.abs(Date.now() - EPOHE).toString(36)
const urlBasePrefix = `${import.meta.env.BASE_URL}`.replace(/\/+$/, '')
const url = new URL(`${urlBasePrefix}/read/${uri}`, location.origin).toString()
const url = new URL(`/read/${uri}`, location.origin).toString()
const qrCodeDoc: QRCodeDocument = {
_id: `qr_code:${uri}`,