Skip to content

Commit 6b406cc

Browse files
authored
chore: disable typescript + eslint during next.js builds (#421)
1 parent 58b200f commit 6b406cc

File tree

11 files changed

+27
-13
lines changed

11 files changed

+27
-13
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import type { NextConfig } from "next";
22

33
const nextConfig: NextConfig = {
4-
/* config options here */
4+
typescript: { ignoreBuildErrors: true },
5+
eslint: { ignoreDuringBuilds: true },
56
};
67

78
export default nextConfig;
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
import type { NextConfig } from "next";
22

33
const nextConfig: NextConfig = {
4-
eslint: {
5-
// Warning: This allows production builds to successfully complete even if
6-
// your project has ESLint errors.
7-
ignoreDuringBuilds: true,
8-
},
4+
typescript: { ignoreBuildErrors: true },
5+
eslint: { ignoreDuringBuilds: true },
96
};
107

118
export default nextConfig;
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
/** @type {import('next').NextConfig} */
22
const nextConfig = {
3-
typescript: {
4-
ignoreBuildErrors: true,
5-
},
3+
typescript: { ignoreBuildErrors: true },
4+
eslint: { ignoreDuringBuilds: true },
65
};
76

87
export default nextConfig;

examples/create-next-app/next.config.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ import { initOpenNextCloudflareForDev } from "@opennextjs/cloudflare";
33
initOpenNextCloudflareForDev();
44

55
/** @type {import('next').NextConfig} */
6-
const nextConfig = {};
6+
const nextConfig = {
7+
typescript: { ignoreBuildErrors: true },
8+
eslint: { ignoreDuringBuilds: true },
9+
};
710

811
export default nextConfig;

examples/middleware/next.config.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ import { initOpenNextCloudflareForDev } from "@opennextjs/cloudflare";
33
initOpenNextCloudflareForDev();
44

55
/** @type {import('next').NextConfig} */
6-
const nextConfig = {};
6+
const nextConfig = {
7+
typescript: { ignoreBuildErrors: true },
8+
eslint: { ignoreDuringBuilds: true },
9+
};
710

811
export default nextConfig;

examples/next-partial-prerendering/next.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/** @type {import('next').NextConfig} */
22
const nextConfig = {
33
typescript: { ignoreBuildErrors: true },
4+
eslint: { ignoreDuringBuilds: true },
45
experimental: {
56
ppr: true,
67
},

examples/playground14/next.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ initOpenNextCloudflareForDev();
44

55
/** @type {import('next').NextConfig} */
66
const nextConfig = {
7+
typescript: { ignoreBuildErrors: true },
8+
eslint: { ignoreDuringBuilds: true },
79
experimental: {
810
// Generate source map to validate the fix for opennextjs/opennextjs-cloudflare#341
911
serverSourceMaps: true,

examples/playground15/next.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ initOpenNextCloudflareForDev();
44

55
/** @type {import('next').NextConfig} */
66
const nextConfig = {
7+
typescript: { ignoreBuildErrors: true },
8+
eslint: { ignoreDuringBuilds: true },
79
experimental: {
810
// Generate source map to validate the fix for opennextjs/opennextjs-cloudflare#341
911
serverSourceMaps: true,

examples/ssg-app/next.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import { initOpenNextCloudflareForDev } from "@opennextjs/cloudflare";
44
initOpenNextCloudflareForDev();
55

66
const nextConfig: NextConfig = {
7-
/* config options here */
7+
typescript: { ignoreBuildErrors: true },
8+
eslint: { ignoreDuringBuilds: true },
89
};
910

1011
export default nextConfig;
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
/** @type {import('next').NextConfig} */
2-
const nextConfig = {};
2+
const nextConfig = {
3+
typescript: { ignoreBuildErrors: true },
4+
eslint: { ignoreDuringBuilds: true },
5+
};
36

47
export default nextConfig;

0 commit comments

Comments
 (0)