commenting code
This commit is contained in:
@@ -6,8 +6,13 @@ const nextConfig = {
|
|||||||
// - `'export'`: An exported build output, `out` directory, that only includes static HTML/CSS/JS. Useful for self-hosting without a Node.js server.
|
// - `'export'`: An exported build output, `out` directory, that only includes static HTML/CSS/JS. Useful for self-hosting without a Node.js server.
|
||||||
output: "standalone", // needed for running the app in a Docker container
|
output: "standalone", // needed for running the app in a Docker container
|
||||||
experimental: {
|
experimental: {
|
||||||
// https://github.com/vercel/next.js/issues/58295
|
// "x-forwarded-host" is a HTTP header added by a reverse proxy,
|
||||||
serverActions: { allowedOrigins: ["rezije.app", "rezije.app:80", "localhost:3001"], }
|
// and it contains the original host requested by the client
|
||||||
|
// this is needed for the server to know which host to render
|
||||||
|
// This however differs from the "Host" header, which results in
|
||||||
|
// server rejecting API requests from the client
|
||||||
|
// So here we tell Next.JS to accept requests where the "x-forwarded-host" equals and of the following values
|
||||||
|
serverActions: { allowedOrigins: ["rezije.app", "rezije.app:80", "localhost:3001", "0.0.0.0:80"], }
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user