2022-06-03 19:54:06 +00:00
|
|
|
module.exports = {
|
|
|
|
reactStrictMode: true,
|
|
|
|
eslint: {
|
|
|
|
ignoreDuringBuilds: true,
|
|
|
|
},
|
2023-07-19 14:49:15 +00:00
|
|
|
images: {
|
|
|
|
remotePatterns: [
|
|
|
|
{
|
|
|
|
protocol: "https",
|
|
|
|
hostname: "static.datasquirel.com",
|
|
|
|
port: "",
|
|
|
|
pathname: "/images/**",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2023-08-21 08:39:44 +00:00
|
|
|
async headers() {
|
|
|
|
return [
|
|
|
|
{
|
2023-08-21 08:42:08 +00:00
|
|
|
source: "/api/:path*",
|
2023-08-21 08:39:44 +00:00
|
|
|
headers: [
|
|
|
|
{ key: "Access-Control-Allow-Credentials", value: "true" },
|
|
|
|
{ key: "Access-Control-Allow-Origin", value: "*" },
|
|
|
|
{ key: "Access-Control-Allow-Methods", value: "GET,OPTIONS,PATCH,DELETE,POST,PUT" },
|
|
|
|
{ key: "Access-Control-Allow-Headers", value: "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version" },
|
|
|
|
],
|
|
|
|
},
|
|
|
|
];
|
|
|
|
},
|
2022-06-03 19:54:06 +00:00
|
|
|
};
|