mirror of
https://github.com/yeicor-3d/yet-another-cad-viewer.git
synced 2025-12-19 14:14:13 +01:00
Fix production builds
This commit is contained in:
@@ -113,6 +113,7 @@ async function runCode() {
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
output(`Error running code: ${e}\n`);
|
output(`Error running code: ${e}\n`);
|
||||||
} finally {
|
} finally {
|
||||||
|
output("Code execution finished.\n");
|
||||||
running.value = false; // Indicate that Pyodide is ready
|
running.value = false; // Indicate that Pyodide is ready
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
(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";
|
import {encrypt} from "tanmayo7lock";
|
||||||
|
|
||||||
async function check(lockerName: string) {
|
async function check(lockerName: string) {
|
||||||
|
|||||||
@@ -62,12 +62,7 @@ export default defineConfig({
|
|||||||
__APP_VERSION__: JSON.stringify(version),
|
__APP_VERSION__: JSON.stringify(version),
|
||||||
__APP_GIT_SHA__: JSON.stringify(execSync('git rev-parse HEAD').toString().trim()),
|
__APP_GIT_SHA__: JSON.stringify(execSync('git rev-parse HEAD').toString().trim()),
|
||||||
__APP_GIT_DIRTY__: JSON.stringify(execSync('git diff --quiet || echo dirty').toString().trim()),
|
__APP_GIT_DIRTY__: JSON.stringify(execSync('git diff --quiet || echo dirty').toString().trim()),
|
||||||
__YACV_SMALL_BUILD__: JSON.stringify(wantsSmallBuild),
|
__YACV_SMALL_BUILD__: JSON.stringify(wantsSmallBuild)
|
||||||
process: {
|
|
||||||
env: {
|
|
||||||
LOCK_SECRET: "hudfhgd8fghdfgh3uhuifdgh" // Shhh, this is a secret key for the vouz.tech locker
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user