mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
Disable minification for debugging
This commit is contained in:
parent
e67dc07473
commit
8939d17b8a
2
build.ts
2
build.ts
|
|
@ -23,7 +23,7 @@ await Bun.build({
|
||||||
outdir: `${process.cwd()}/dist`,
|
outdir: `${process.cwd()}/dist`,
|
||||||
target: "bun",
|
target: "bun",
|
||||||
splitting: true,
|
splitting: true,
|
||||||
minify: true,
|
minify: false,
|
||||||
external: ["bullmq", "frontend"],
|
external: ["bullmq", "frontend"],
|
||||||
}).then((output) => {
|
}).then((output) => {
|
||||||
if (!output.success) {
|
if (!output.success) {
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,8 @@ export const schema = z.object({
|
||||||
"update",
|
"update",
|
||||||
"admin.sign_up",
|
"admin.sign_up",
|
||||||
"admin.report",
|
"admin.report",
|
||||||
|
"chat",
|
||||||
|
"pleroma:chat_mention",
|
||||||
])
|
])
|
||||||
.array()
|
.array()
|
||||||
.optional(),
|
.optional(),
|
||||||
|
|
@ -52,6 +54,8 @@ export const schema = z.object({
|
||||||
"update",
|
"update",
|
||||||
"admin.sign_up",
|
"admin.sign_up",
|
||||||
"admin.report",
|
"admin.report",
|
||||||
|
"chat",
|
||||||
|
"pleroma:chat_mention",
|
||||||
])
|
])
|
||||||
.array()
|
.array()
|
||||||
.optional(),
|
.optional(),
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,6 @@ import {
|
||||||
findManyStatuses,
|
findManyStatuses,
|
||||||
statusToAPI,
|
statusToAPI,
|
||||||
} from "~database/entities/Status";
|
} from "~database/entities/Status";
|
||||||
import { db } from "~drizzle/db";
|
|
||||||
|
|
||||||
export const meta = applyConfig({
|
export const meta = applyConfig({
|
||||||
allowedMethods: ["GET"],
|
allowedMethods: ["GET"],
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue