update dockerfile env logic & deploy database cf worker

This commit is contained in:
Ishaan Dey
2024-05-05 22:33:24 -07:00
parent 34a7fd7ab9
commit c5762d430c
15 changed files with 104 additions and 576 deletions

View File

@ -62,7 +62,7 @@ io.use(async (socket, next) => {
}
const { sandboxId, userId } = parseQuery.data
const dbUser = await fetch(`http://localhost:8787/api/user?id=${userId}`)
const dbUser = await fetch(`https://database.ishaan1013.workers.dev/api/user?id=${userId}`)
const dbUserJSON = (await dbUser.json()) as User
if (!dbUserJSON) {
@ -271,7 +271,7 @@ io.on("connection", async (socket) => {
instructions: string,
callback
) => {
const fetchPromise = fetch(`http://localhost:8787/api/sandbox/generate`, {
const fetchPromise = fetch(`https://database.ishaan1013.workers.dev/api/sandbox/generate`, {
method: "POST",
headers: {
"Content-Type": "application/json",