* refactor: different Jan instances should have different Cortex server port configurations * chore: update workflow to use env input * chore: update env for cortex port setting
18 lines
541 B
JavaScript
18 lines
541 B
JavaScript
import { defineConfig } from 'rolldown'
|
|
import settingJson from './resources/settings.json' with { type: 'json' }
|
|
import modelSources from './resources/default.json' with { type: 'json' }
|
|
|
|
export default defineConfig({
|
|
input: 'src/index.ts',
|
|
output: {
|
|
format: 'esm',
|
|
file: 'dist/index.js',
|
|
},
|
|
platform: 'browser',
|
|
define: {
|
|
SETTINGS: JSON.stringify(settingJson),
|
|
API_URL: JSON.stringify(`http://127.0.0.1:${process.env.CORTEX_API_PORT ?? "39291"}`),
|
|
DEFAULT_MODEL_SOURCES: JSON.stringify(modelSources),
|
|
},
|
|
})
|