27 lines
604 B
JavaScript
27 lines
604 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
reactStrictMode: true,
|
|
output: "standalone",
|
|
async headers() {
|
|
return [
|
|
{
|
|
source: "/api/packages",
|
|
headers: [
|
|
{key: "Access-Control-Allow-Credentials", value: "false"},
|
|
{key: "Access-Control-Allow-Origin", value: "https://encoach.com"},
|
|
{
|
|
key: "Access-Control-Allow-Methods",
|
|
value: "GET",
|
|
},
|
|
{
|
|
key: "Access-Control-Allow-Headers",
|
|
value: "Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date",
|
|
},
|
|
],
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
module.exports = nextConfig;
|