-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Disable ESLint during builds in next.config.js
- 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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |