fix: allow 25MB uploads for migrations

This commit is contained in:
Daniel Hougaard
2024-10-10 03:37:08 +04:00
parent 06f9a1484b
commit 662f1a31f6
3 changed files with 33 additions and 0 deletions
@@ -4,9 +4,12 @@ import { readLimit } from "@app/server/config/rateLimiter";
import { verifyAuth } from "@app/server/plugins/auth/verify-auth";
import { AuthMode } from "@app/services/auth/auth-type";
const MB25_IN_BYTES = 26214400;
export const registerExternalMigrationRouter = async (server: FastifyZodProvider) => {
server.route({
method: "POST",
bodyLimit: MB25_IN_BYTES,
url: "/env-key",
config: {
rateLimit: readLimit