homepage/next.config.js
Vadym Samoilenko be5e2a5e7c Deploy: add basePath support and server docker-compose
- next.config.js: basePath from NEXT_PUBLIC_BASE_PATH env var (build arg)
- docker-compose.yml: builds with /homepage base path, exposes :3001 locally, mounts config dir and Docker socket
- deploy.sh: clone/pull + build + start script for optical-dev server

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-01 12:27:45 +01:00

20 lines
408 B
JavaScript

const { i18n } = require("./next-i18next.config");
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
output: "standalone",
basePath: process.env.NEXT_PUBLIC_BASE_PATH || "",
images: {
remotePatterns: [
{
protocol: "https",
hostname: "cdn.jsdelivr.net",
},
],
unoptimized: true,
},
i18n,
};
module.exports = nextConfig;