app: lazy load lean-qr

This commit is contained in:
k
2024-07-12 12:47:05 +02:00
parent 9077fee4d6
commit 46f8e3bafd
9 changed files with 134 additions and 78 deletions

View File

@@ -17,17 +17,16 @@ export function createResourceDataset<
>;
const baseURL = `${
// location.hostname === "localhost"
// ? "http://localhost:3110"
// : "https://api.satonomics.xyz"
"https://api.satonomics.xyz"
location.hostname === "localhost"
? "http://localhost:3111"
: "https://api.satonomics.xyz"
// "https://api.satonomics.xyz"
}${path}`;
const backupURL = `${
// location.hostname === "localhost"
// ? "http://localhost:3110"
// : "https://api.satonomics.xyz"
"https://api-bkp.satonomics.xyz"
location.hostname === "localhost"
? "http://localhost:3111"
: "https://api-bkp.satonomics.xyz"
}${path}`;
return createRoot((dispose) => {