Fix production builds

This commit is contained in:
Yeicor
2025-08-02 13:12:03 +02:00
parent 7d22ca465e
commit 1d6230ef1e
3 changed files with 6 additions and 7 deletions

View File

@@ -113,6 +113,7 @@ async function runCode() {
} catch (e) {
output(`Error running code: ${e}\n`);
} finally {
output("Code execution finished.\n");
running.value = false; // Indicate that Pyodide is ready
}
}

View File

@@ -1,4 +1,7 @@
import { encrypt } from "tanmayo7lock";
(globalThis as any).process = (globalThis as any).process || {};
(globalThis as any).process.env = (globalThis as any).env || {};
(globalThis as any).process.env.LOCK_SECRET = (globalThis as any).process.env.LOCK_SECRET || "hudfhgd8fghdfgh3uhuifdgh"; // Shhh, this is a secret key for the vouz.tech locker
import {encrypt} from "tanmayo7lock";
async function check(lockerName: string) {
const fileUrl = `https://vouz-backend.onrender.com/api/check_key`;