mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
build: 🏗️ Make Nix build great again
This commit is contained in:
parent
1679585c4c
commit
5a4ce29206
13 changed files with 6773 additions and 194 deletions
|
|
@ -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"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue