diff --git a/apps/web/next.config.js b/apps/web/next.config.js
index 0c4aa206..5a9888e6 100644
--- a/apps/web/next.config.js
+++ b/apps/web/next.config.js
@@ -7,13 +7,7 @@ const nextConfig = {
domains: ["avatars.githubusercontent.com"],
},
assetPrefix: process.env.NEXT_PUBLIC_PIXELEYE_HOSTING === "true" && process.env.NODE_ENV === "production" ? "https://app.pixeleye.io" : undefined,
- output: process.env.DOCKER_BUILD === "true" ? "standalone" : undefined,
- async rewrites() {
- return [{
- source: "/api/:path*",
- destination: process.env.BACKEND_URL + "/:path*",
- }]
- }
+ output: process.env.DOCKER_BUILD === "true" ? "standalone" : undefined
};
module.exports = nextConfig;
diff --git a/apps/web/src/app/layout.tsx b/apps/web/src/app/layout.tsx
index 11eca60f..ce698590 100644
--- a/apps/web/src/app/layout.tsx
+++ b/apps/web/src/app/layout.tsx
@@ -4,6 +4,7 @@ import type { Metadata } from "next";
import { Inter } from "next/font/google";
import Providers from "./providers";
import { cx } from "class-variance-authority";
+import { env } from "@/env";
const inter = Inter({ subsets: ["latin"] });
@@ -37,7 +38,9 @@ export default function RootLayout({
"dark:selection:bg-teal-950 dark:selection:text-teal-50 selection:bg-teal-600 selection:text-teal-50 h-fit"
)}
>
- {children}
+ {children}