Files
frontend/next.config.ts
TakahashiNguyen 27bb95dea5
Release package / release (push) Failing after 27m9s
fix: final update (#44)
Co-authored-by: TakahashiNg <83152264+TakahashiNguyen@users.noreply.github.com>
Reviewed-on: #44
2026-05-15 00:46:09 +00:00

34 lines
810 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 gatewayUrl = "http://172.17.0.1:32080";
return [
{
source: "/api/:path*",
destination: `${gatewayUrl}/api/:path*`,
},
];
},
};
export default nextConfig;