Skip to content

Commit

Permalink
Fix: Disable ESLint during builds in next.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
eckartal authored and eckartal committed Dec 29, 2024
1 parent fef10ac commit f99e1ef
Showing 1 changed file with 8 additions and 62 deletions.
70 changes: 8 additions & 62 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,63 +1,9 @@
const withMDX = require("@next/mdx")();

module.exports = withMDX({
pageExtensions: ["ts", "tsx", "js", "jsx", "md", "mdx"],
experimental: {
mdxRs: true,
},
images: {
remotePatterns: [
{
protocol: "https",
hostname: "pbs.twimg.com",
port: "",
pathname: "/**",
},
{
protocol: "https",
hostname: "abs.twimg.com",
port: "",
pathname: "/**",
},
{
protocol: "https",
hostname: "m.media-amazon.com",
port: "",
pathname: "/**",
},
{
protocol: "https",
hostname: "images-na.ssl-images-amazon.com",
port: "",
pathname: "/**",
},
],
},
headers() {
return [
{
source: "/images/rauchg-3d4cecf.jpg",
headers: [
{
key: "cache-control",
value: "public, max-age=31536000, immutable",
},
],
},
];
/** @type {import('next').NextConfig} */
const nextConfig = {
eslint: {
// Warning: Bu seçenek tüm ESLint kontrollerini devre dışı bırakır
ignoreDuringBuilds: true,
},
redirects() {
return [
{
source: "/essays/:nested*",
destination: "/",
permanent: true,
},
{
source: "/slackin/:nested*",
destination: "https://github.com/rauchg/slackin",
permanent: true,
},
];
},
});
}

module.exports = nextConfig

0 comments on commit f99e1ef

Please sign in to comment.