Files
duolingo-clone/next.config.mjs
Sanidhya Kumar Verma 971891f8cc added all image sources
2024-07-26 19:31:12 +05:30

39 lines
772 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
async headers() {
return [
{
source: "/api/(.*)",
headers: [
{
key: "Access-Control-Allow-Origin",
value: "*",
},
{
key: "Access-Control-Allow-Methods",
value: "GET, POST, PUT, DELETE, OPTIONS",
},
{
key: "Access-Control-Allow-Headers",
value: "Content-Type, Authorization",
},
{
key: "Content-Range",
value: "bytes : 0-9/*",
},
],
},
];
},
images: {
remotePatterns: [
{
protocol: "https",
hostname: "**",
},
],
},
};
export default nextConfig;