* add mcp for web * update /jan/v1 endpoint to /v1 * update mise and makefile * update yarn lock * use mcp oauth properly
19 lines
448 B
TypeScript
19 lines
448 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/v1'),
|
|
}
|
|
}) |