c2afb3d3b5
Release package / release (push) Successful in 7m28s
Co-authored-by: Thanh Quy - wolf <524H0124@student.tdtu.edu.vn> Reviewed-on: #37 Co-authored-by: TaNguyenThanhQuy <tanguyenthanhquy@noreply.localhost> Co-committed-by: TaNguyenThanhQuy <tanguyenthanhquy@noreply.localhost>
34 lines
809 B
TypeScript
34 lines
809 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://localhost:32080";
|
|
return [
|
|
{
|
|
source: "/api/:path*",
|
|
destination: `${gatewayUrl}/api/:path*`,
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|