Spaces:
Build error
Build error
| /** @type {import('next').NextConfig} */ | |
| const nextConfig = { | |
| output: "standalone", | |
| reactStrictMode: true, | |
| // Disable telemetry to speed up builds | |
| telemetry: false, | |
| // Skip type checking during build (faster builds, type errors caught in dev) | |
| typescript: { | |
| ignoreBuildErrors: false, // Keep this false for production, but speeds up if set to true | |
| }, | |
| // Skip ESLint during build for faster builds | |
| eslint: { | |
| ignoreDuringBuilds: false, // Keep this false for production, but speeds up if set to true | |
| }, | |
| // Optimize webpack to skip processing large data files | |
| webpack: (config, { isServer }) => { | |
| // Ignore parquet files - they're only used at runtime by DuckDB-WASM | |
| // They should be treated as static assets, not processed by webpack | |
| config.module.rules.push({ | |
| test: /\.parquet$/, | |
| type: 'asset/resource', | |
| }); | |
| // Reduce webpack processing overhead | |
| if (!isServer) { | |
| config.optimization = { | |
| ...config.optimization, | |
| // Reduce chunk splitting overhead for faster builds | |
| splitChunks: { | |
| chunks: 'all', | |
| cacheGroups: { | |
| default: false, | |
| vendors: false, | |
| }, | |
| }, | |
| }; | |
| } | |
| return config; | |
| }, | |
| // Exclude large files from static optimization | |
| experimental: { | |
| optimizePackageImports: ['@duckdb/duckdb-wasm'], | |
| }, | |
| }; | |
| export default nextConfig; | |