remote update

This commit is contained in:
Chris Wanstrath 2025-10-06 20:45:26 -07:00
parent abc2b9f2fa
commit c569ddc338

View File

@ -3,7 +3,7 @@
import { $ } from "bun"
import restart from "./restart"
export default async function () {
export default async function update() {
if (process.env.NODE_ENV !== "production") {
return { error: "Can only update in production." }
}
@ -16,4 +16,6 @@ export default async function () {
} else {
return restart()
}
}
}
export const GET = update