ratalai commited on
Commit
b9b541b
·
1 Parent(s): 1a6f49e

Disable TypeScript type checking during build for Hugging Face Spaces

Browse files
Files changed (1) hide show
  1. next.config.js +12 -0
next.config.js CHANGED
@@ -7,6 +7,18 @@ const nextConfig = {
7
  publicRuntimeConfig: {
8
  root: process.env.BASE_PATH || "",
9
  },
 
 
 
 
 
 
 
 
 
 
 
 
10
  };
11
 
12
  module.exports = nextConfig;
 
7
  publicRuntimeConfig: {
8
  root: process.env.BASE_PATH || "",
9
  },
10
+ typescript: {
11
+ // !! WARN !!
12
+ // Dangerously allow production builds to successfully complete even if
13
+ // your project has type errors.
14
+ // This is needed for Hugging Face Spaces Docker build
15
+ ignoreBuildErrors: true,
16
+ },
17
+ eslint: {
18
+ // Warning: This allows production builds to successfully complete even if
19
+ // your project has ESLint errors.
20
+ ignoreDuringBuilds: true,
21
+ },
22
  };
23
 
24
  module.exports = nextConfig;