* call jan api * fix lint * ci: add jan server web * chore: add Dockerfile * clean up ui ux and support for reasoning fields, make app spa * add logo * chore: update tag for preview image * chore: update k8s service name * chore: update image tag and image name * fixed test --------- Co-authored-by: Minh141120 <minh.itptit@gmail.com> Co-authored-by: Nguyen Ngoc Minh <91668012+Minh141120@users.noreply.github.com>
19 lines
452 B
TypeScript
19 lines
452 B
TypeScript
import { defineConfig } from 'vite'
|
|
|
|
export default defineConfig({
|
|
build: {
|
|
lib: {
|
|
entry: 'src/index.ts',
|
|
name: 'JanExtensionsWeb',
|
|
formats: ['es'],
|
|
fileName: 'index'
|
|
},
|
|
rollupOptions: {
|
|
external: ['@janhq/core', 'zustand']
|
|
},
|
|
emptyOutDir: false // Don't clean the output directory
|
|
},
|
|
define: {
|
|
JAN_API_BASE: JSON.stringify(process.env.JAN_API_BASE || 'https://api-dev.jan.ai/jan/v1'),
|
|
}
|
|
}) |