Files
frontend/next.config.ts
T
TakahashiNg d54585374b
Release package / release (pull_request) Has been cancelled
fix: minor
2026-04-19 08:39:45 +00:00

37 lines
878 B
TypeScript

import type { NextConfig } from "next";
/**
* Next.js configuration.
*
* Currently uses all defaults — no custom rewrites, redirects, or image domains needed.
* Add options here as the project grows (e.g. `images.remotePatterns` when using
* external image URLs, `experimental.serverActions` for form handling, etc.)
*
* Docs: https://nextjs.org/docs/app/api-reference/next-config-js
*/
const nextConfig: NextConfig = {
output: "standalone",
images: {
remotePatterns: [
{
protocol: "https",
hostname: "images.unsplash.com",
},
],
},
async rewrites() {
const rewrites = [];
if (process.env.NODE_ENV !== "production") {
rewrites.push({
source: "/api/:path*",
destination: "http://host.docker.internal:32080/api/:path*",
});
}
return rewrites;
},
};
export default nextConfig;