diff --git a/frontend/next-env.d.ts b/frontend/next-env.d.ts
index 9edff1c..c4b7818 100644
--- a/frontend/next-env.d.ts
+++ b/frontend/next-env.d.ts
@@ -1,6 +1,6 @@
///
///
-import "./.next/types/routes.d.ts";
+import "./.next/dev/types/routes.d.ts";
// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
diff --git a/frontend/next.config.ts b/frontend/next.config.ts
index 4ea02cf..e9a86e8 100644
--- a/frontend/next.config.ts
+++ b/frontend/next.config.ts
@@ -1,6 +1,14 @@
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
+ allowedDevOrigins: ["192.168.18.8"],
+ experimental: {
+ // The Next.js proxy layer buffers request bodies in memory; the default
+ // cap is 10 MB. Raise it to 300 MB so that large file uploads are not
+ // truncated before they reach the FastAPI backend (which itself enforces
+ // 50 MB for unauthenticated and 250 MB for authenticated requests).
+ proxyClientMaxBodySize: "300mb",
+ },
async rewrites() {
return [
{