mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-03-28 10:42:10 +01:00
24 lines
627 B
JavaScript
24 lines
627 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
experimental: {
|
|
appDir: true,
|
|
},
|
|
output: "standalone",
|
|
redirects: async () => {
|
|
// In production, something else (nginx in the one box setup) should take
|
|
// care of this redirect. TODO (chris): better support setups where
|
|
// web_server and api_server are on different machines.
|
|
if (process.env.NODE_ENV === "production") return [];
|
|
|
|
return [
|
|
{
|
|
source: "/api/:path*",
|
|
destination: "http://localhost:8080/:path*", // Proxy to Backend
|
|
permanent: true,
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
module.exports = nextConfig;
|