remote update
This commit is contained in:
parent
abc2b9f2fa
commit
c569ddc338
|
|
@ -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
|
||||
Loading…
Reference in New Issue
Block a user