- Built responsive home page with navigation to API docs - Created feature cards highlighting API capabilities - Configured Next.js for static export - Updated nginx to serve frontend static files - Added nginx service to docker-compose configurations - Fixed TypeScript issues in auth components Components updated: - web/app/page.tsx: Complete home page redesign - web/components/common/Checkbox.tsx: Support ReactNode labels - web/components/common/Link.tsx: Add onClick handler support - web/app/(auth)/reset-password/confirm/page.tsx: Suspense boundary Infrastructure: - backend/nginx.conf: Serve static files from /usr/share/nginx/html - backend/docker-compose.yml: Added nginx service - backend/docker-compose.prod.yml: Mount frontend build output - web/next.config.js: Static export configuration Job ID: MTAD-IMPL-2025-11-18-CL
20 lines
441 B
JavaScript
20 lines
441 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
output: 'export',
|
|
reactStrictMode: true,
|
|
swcMinify: true,
|
|
images: {
|
|
unoptimized: true, // Required for static export
|
|
remotePatterns: [
|
|
{
|
|
protocol: 'https',
|
|
hostname: '**',
|
|
},
|
|
],
|
|
},
|
|
env: {
|
|
NEXT_PUBLIC_API_BASE_URL: process.env.NEXT_PUBLIC_API_BASE_URL || 'https://mtd.runfoo.run/api/v1',
|
|
},
|
|
}
|
|
|
|
module.exports = nextConfig
|