Skip to content

Commit 53e900e

Browse files
Ja4V8s28Ckmittalyashu
authored andcommitted
fix
1 parent f5f34a7 commit 53e900e

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

next.config.mjs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const config = {
99
// Reduce bundle size by optimizing package imports for lucide-react
1010
optimizePackageImports: ["lucide-react"],
1111
},
12+
allowedDevOrigins: ["localhost"],
1213
async redirects() {
1314
return [
1415
{
@@ -19,10 +20,10 @@ const config = {
1920
];
2021
},
2122

22-
images: {
23-
// Use Cloudflare Image Resizing instead of bundling image optimization
24-
unoptimized: true,
25-
},
23+
images: {
24+
// Use Cloudflare Image Resizing instead of bundling image optimization
25+
unoptimized: true,
26+
},
2627
};
2728

2829
export default withMDX(config);

src/app/api-reference/[[...slug]]/page.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ import { Alert } from "@/src/components/Alert";
1313
import { openApiSource } from "@/src/lib/source";
1414
import { openapi } from "@/src/lib/openapi";
1515

16-
export const { GET, HEAD, PUT, POST, PATCH, DELETE } = openapi.createProxy({
17-
allowedOrigins: ["*"],
18-
});
19-
2016
export default async function Page(props: {
2117
params: Promise<{ slug?: string[] }>;
2218
}) {

0 commit comments

Comments
 (0)