personal-site/next.config.js

30 lines
966 B
JavaScript
Raw Normal View History

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 [
{
source: "/api/test-route",
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
};