2024-01-01 01:49:58 +00:00
|
|
|
/**
|
|
|
|
* @type {import("next").NextConfig}
|
|
|
|
*/
|
2022-06-03 19:54:06 +00:00
|
|
|
module.exports = {
|
|
|
|
reactStrictMode: true,
|
|
|
|
eslint: {
|
|
|
|
ignoreDuringBuilds: true,
|
|
|
|
},
|
2024-01-01 01:49:58 +00:00
|
|
|
typescript: {
|
|
|
|
ignoreBuildErrors: 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: "*" },
|
2024-01-01 01:49:58 +00:00
|
|
|
{
|
|
|
|
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",
|
|
|
|
},
|
2023-08-21 08:39:44 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
];
|
|
|
|
},
|
2022-06-03 19:54:06 +00:00
|
|
|
};
|