* fix: reduce the number of api call Signed-off-by: James <james@jan.ai> * fix: download progress Signed-off-by: James <james@jan.ai> * chore: save blob * fix: server boot up * fix: download state not updating Signed-off-by: James <james@jan.ai> * fix: copy assets * Add Dockerfile CPU for Jan Server and Jan Web * Add Dockerfile GPU for Jan Server and Jan Web * feat: S3 adapter * Update check find count from ./pre-install and correct copy:asserts command * server add bundleDependencies @janhq/core * server add bundleDependencies @janhq/core * fix: update success/failed download state (#1945) * fix: update success/failed download state Signed-off-by: James <james@jan.ai> * fix: download model progress and state handling for both Desktop and Web --------- Signed-off-by: James <james@jan.ai> Co-authored-by: James <james@jan.ai> Co-authored-by: Louis <louis@jan.ai> * chore: refactor * fix: load models empty first time open * Add Docker compose * fix: assistants onUpdate --------- Signed-off-by: James <james@jan.ai> Co-authored-by: James <james@jan.ai> Co-authored-by: Hien To <tominhhien97@gmail.com> Co-authored-by: NamH <NamNh0122@gmail.com>
43 lines
1.1 KiB
JavaScript
43 lines
1.1 KiB
JavaScript
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
/** @type {import('next').NextConfig} */
|
|
|
|
const webpack = require('webpack')
|
|
|
|
const packageJson = require('./package.json')
|
|
|
|
const nextConfig = {
|
|
output: 'export',
|
|
assetPrefix: '.',
|
|
images: {
|
|
unoptimized: true,
|
|
remotePatterns: [
|
|
{
|
|
protocol: 'https',
|
|
hostname: '**',
|
|
},
|
|
],
|
|
},
|
|
webpack: (config) => {
|
|
// do some stuff here
|
|
config.optimization.minimize = false
|
|
config.optimization.minimizer = []
|
|
config.plugins = [
|
|
...config.plugins,
|
|
new webpack.DefinePlugin({
|
|
VERSION: JSON.stringify(packageJson.version),
|
|
ANALYTICS_ID: JSON.stringify(process.env.ANALYTICS_ID),
|
|
ANALYTICS_HOST: JSON.stringify(process.env.ANALYTICS_HOST),
|
|
API_BASE_URL: JSON.stringify(
|
|
process.env.API_BASE_URL ?? 'http://localhost:1337'
|
|
),
|
|
isMac: process.platform === 'darwin',
|
|
isWindows: process.platform === 'win32',
|
|
isLinux: process.platform === 'linux',
|
|
}),
|
|
]
|
|
return config
|
|
},
|
|
}
|
|
|
|
module.exports = nextConfig
|