build: 🏗️ Make Nix build great again

This commit is contained in:
Jesse Wierzbinski 2025-04-14 16:51:00 +02:00
parent 1679585c4c
commit 5a4ce29206
No known key found for this signature in database
13 changed files with 6773 additions and 194 deletions

View file

@ -1,4 +1,3 @@
import { cwd } from "node:process";
import { type BunFile, env, file } from "bun";
import ISO6391 from "iso-639-1";
import { types as mimeTypes } from "mime-types";
@ -6,6 +5,7 @@ import { generateVAPIDKeys } from "web-push";
import { z } from "zod";
import { ZodError } from "zod";
import { fromZodError } from "zod-validation-error";
import { cwdFromEntrypoint } from "@/lib.ts";
import { ProxiableUrl } from "~/classes/media/url.ts";
import { RolePermission } from "~/packages/client/schemas/permissions.ts";
@ -402,7 +402,9 @@ export const ConfigSchema = z
}),
frontend: z.strictObject({
enabled: z.boolean().default(true),
path: z.string().default(env.VERSIA_FRONTEND_PATH || cwd()),
path: z
.string()
.default(env.VERSIA_FRONTEND_PATH || cwdFromEntrypoint()),
routes: z.strictObject({
home: urlPath.default("/"),
login: urlPath.default("/oauth/authorize"),