Add AI chat to dashboard, refactor stream module, snapshot --urls, batch argument mode (#1160)
* chat * refactor * fixes * fixes * fixes * fixes * improvements * download chat * batch * fixes * fixes * fixes * fmt * fixes * fixes * fixes * fmt
This commit is contained in:
@@ -1,9 +1,22 @@
|
||||
import type { NextConfig } from "next";
|
||||
|
||||
const DAEMON_ORIGIN = process.env.DAEMON_URL || "http://localhost:4848";
|
||||
|
||||
const config: NextConfig = {
|
||||
output: "export",
|
||||
images: { unoptimized: true },
|
||||
devIndicators: false,
|
||||
env: {
|
||||
NEXT_PUBLIC_DAEMON_URL: DAEMON_ORIGIN,
|
||||
},
|
||||
async rewrites() {
|
||||
return [
|
||||
{
|
||||
source: "/api/:path*",
|
||||
destination: `${DAEMON_ORIGIN}/api/:path*`,
|
||||
},
|
||||
];
|
||||
},
|
||||
};
|
||||
|
||||
export default config;
|
||||
|
||||
Reference in New Issue
Block a user