- Multi-stage Dockerfile for Go backend (golang:1.25-alpine -> alpine:3) - Multi-stage Dockerfile for Next.js frontend (bun:1 -> node:22-alpine) - docker-compose.yml with backend + frontend services, health checks - Next.js standalone output + API rewrites to proxy /api/* to backend - .dockerignore files for both services - .env.example documenting required environment variables
14 lines
281 B
TypeScript
14 lines
281 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const nextConfig: NextConfig = {
|
|
output: "standalone",
|
|
rewrites: async () => [
|
|
{
|
|
source: "/api/:path*",
|
|
destination: `${process.env.API_URL || "http://localhost:8080"}/:path*`,
|
|
},
|
|
],
|
|
};
|
|
|
|
export default nextConfig;
|