OmniRoute/scripts/dbsetup.js
diegosouzapw 7bd8ace1a2 fix(auth): remove fallback gemini oauth client secret
Stop shipping a default Gemini OAuth client secret and require it to
come from the environment instead.

Also tighten proxy fetch typing to avoid any-based undici calls and
move db setup utilities under scripts while removing generated debug
and scratch artifacts.
2026-04-08 17:29:28 -03:00

23 lines
548 B
JavaScript
Executable file

#!/usr/bin/env node
import { spawn } from "node:child_process";
const env = { ...process.env };
await exec("npx next build --experimental-build-mode generate");
// launch application
await exec(process.argv.slice(2).join(" "));
function exec(command) {
const child = spawn(command, { shell: true, stdio: "inherit", env });
return new Promise((resolve, reject) => {
child.on("exit", (code) => {
if (code === 0) {
resolve();
} else {
reject(new Error(`${command} failed rc=${code}`));
}
});
});
}