mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-12-19 10:57:45 +00:00
870d9ecdbf
- Add an experimental feature used for fact-checking falsifiable statements with customizable models. See attached screenshot for example. Once you input a statement that needs to be fact-checked, Khoj goes on a research spree to verify or refute it. - Integrate frontend libraries for [Tailwind](https://tailwindcss.com/) and [ShadCN](https://ui.shadcn.com/) for easier UI development. Update corresponding styling for some existing UI components. - Add component for model selection - Add backend support for sharing arbitrary packets of data that will be consumed by specific front-end views in shareable scenarios
47 lines
1.2 KiB
JavaScript
47 lines
1.2 KiB
JavaScript
/** @type {import('next').NextConfig} */
|
|
|
|
const isProd = process.env.NEXT_PUBLIC_ENV === 'production';
|
|
|
|
const nextConfig = {
|
|
output: isProd ? 'export' : undefined,
|
|
rewrites: isProd ? undefined : async () => {
|
|
return [
|
|
{
|
|
source: '/api/:path*',
|
|
destination: 'http://localhost:42110/api/:path*',
|
|
},
|
|
];
|
|
},
|
|
trailingSlash: true,
|
|
skipTrailingSlashRedirect: true,
|
|
distDir: 'out',
|
|
images: {
|
|
loader: isProd ? 'custom' : 'default',
|
|
loaderFile: isProd ? './image-loader.ts' : undefined,
|
|
remotePatterns: isProd ? [
|
|
{
|
|
protocol: "https",
|
|
hostname: "**.googleusercontent.com",
|
|
},
|
|
{
|
|
protocol: "https",
|
|
hostname: "generated.khoj.dev",
|
|
},
|
|
{
|
|
protocol: "https",
|
|
hostname: "assets.khoj.dev",
|
|
},
|
|
] : [
|
|
{
|
|
protocol: "https",
|
|
hostname: "*"
|
|
},
|
|
{
|
|
protocol: "http",
|
|
hostname: "*"
|
|
}
|
|
]
|
|
}
|
|
};
|
|
|
|
export default nextConfig;
|