- 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>
20 lines
408 B
JavaScript
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;
|