Ship Novya PWA with backend for deployable production use.

Fix production TypeScript builds and add DEPLOY.md so the app can be hosted from this repo.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
ar.badiei
2026-09-03 21:01:52 +03:30
co-authored by Cursor
parent aa9236fb92
commit 370ac15471
193 changed files with 25997 additions and 1991 deletions
+18
View File
@@ -0,0 +1,18 @@
import type { ZodType } from 'zod';
import { zValidator } from '@hono/zod-validator';
export function jsonValidator<T extends ZodType>(schema: T) {
return zValidator('json', schema, (result) => {
if (!result.success) {
throw result.error;
}
});
}
export function queryValidator<T extends ZodType>(schema: T) {
return zValidator('query', schema, (result) => {
if (!result.success) {
throw result.error;
}
});
}