This commit is contained in:
Derock 2024-01-03 22:41:12 -05:00
parent f498aa37ac
commit 4d021db4a1
No known key found for this signature in database
2 changed files with 6 additions and 1 deletions

View file

@ -52,6 +52,7 @@ export const env = createEnv({
PORT: process.env.PORT,
NEXT_PUBLIC_BUILD_COMMIT_SHA: process.env.NEXT_PUBLIC_BUILD_COMMIT_SHA,
STORAGE_PATH: process.env.STORAGE_PATH,
REDEPLOY_SECRET_BYTES: process.env.REDEPLOY_SECRET_BYTES,
},
/**
* Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation. This is especially

View file

@ -42,7 +42,11 @@ export const serviceRouter = createTRPCRouter({
.returning({
id: service.id,
})
.execute();
.execute()
.catch((err) => {
console.error(err);
throw err;
});
assert(data?.id);