Spaces:
Sleeping
Sleeping
File size: 565 Bytes
dbced4f f020d6c dbced4f f020d6c 62b7f0a 87a48cb 62b7f0a 87a48cb dbced4f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | /** @type {import('next').NextConfig} */
const nextConfig = {
env: {
NEXT_PUBLIC_API_URL: process.env.NEXT_PUBLIC_API_URL ?? 'http://localhost:8000',
},
// Docker/HF Spaces: static export served by FastAPI directly on :7860
output: 'export',
eslint: { ignoreDuringBuilds: true },
typescript: { ignoreBuildErrors: true },
images: { unoptimized: true },
// Ensure trailing slashes are consistent for static routing
// and Next.js generates processing/index.html instead of processing.html
trailingSlash: true,
}
module.exports = nextConfig
|