mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-15 06:04:43 +00:00
Remove Foundry Rivet runner override
This commit is contained in:
parent
bc782879c2
commit
422364e68e
1 changed files with 0 additions and 16 deletions
|
|
@ -8,25 +8,9 @@ import { project } from "./project/index.js";
|
|||
import { sandboxInstance } from "./sandbox-instance/index.js";
|
||||
import { workspace } from "./workspace/index.js";
|
||||
|
||||
function normalizePublicApiUrl(raw: string | undefined): string | undefined {
|
||||
const value = raw?.trim();
|
||||
if (!value) return undefined;
|
||||
return value.replace(/\/$/, "");
|
||||
}
|
||||
|
||||
const publicApiUrl = normalizePublicApiUrl(process.env.BETTER_AUTH_URL);
|
||||
const shouldConfigureRunnerPool = Boolean(publicApiUrl && (process.env.RIVET_ENDPOINT || process.env.RIVET_ENGINE));
|
||||
|
||||
export const registry = setup({
|
||||
serverless: {
|
||||
basePath: "/v1/rivet",
|
||||
...(shouldConfigureRunnerPool
|
||||
? {
|
||||
configureRunnerPool: {
|
||||
url: `${publicApiUrl}/v1/rivet/start`,
|
||||
},
|
||||
}
|
||||
: {}),
|
||||
},
|
||||
use: {
|
||||
workspace,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue