Quantumbraid/trainingdata / ui /next.config.ts
Quantumbraid's picture
download
raw
1.07 kB
import type { NextConfig } from 'next';
import { readFileSync } from 'fs';
import { join } from 'path';
const versionFile = readFileSync(join(__dirname, '..', 'version.py'), 'utf8');
const versionMatch = versionFile.match(/VERSION\s*=\s*["']([^"']+)["']/);
const appVersion = versionMatch ? versionMatch[1] : 'unknown';
const nextConfig: NextConfig = {
env: {
NEXT_PUBLIC_APP_VERSION: appVersion,
},
serverExternalPackages: ['macstats', 'osx-temperature-sensor'],
async rewrites() {
return [
{
source: '/proxy-8866/:path*',
destination: 'http://localhost:8866/:path*',
},
];
},
webpack: (config, { isServer }) => {
if (isServer) {
config.externals.push('osx-temperature-sensor', 'macstats');
}
return config;
},
devIndicators: false,
typescript: {
// Remove this. Build fails because of route types
ignoreBuildErrors: true,
},
experimental: {
serverActions: {
bodySizeLimit: '100gb',
},
middlewareClientMaxBodySize: '100gb',
},
};
export default nextConfig;

Xet Storage Details

Size:
1.07 kB
·
Xet hash:
c0e7ec103c8c11d43433d3dff2b7362dc67af11db15f712d210d94dcb982d155

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.