* 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
14 lines
293 B
JavaScript
14 lines
293 B
JavaScript
import { defineConfig } from 'rolldown'
|
|
|
|
export default defineConfig({
|
|
input: 'src/index.ts',
|
|
output: {
|
|
format: 'esm',
|
|
file: 'dist/index.js',
|
|
},
|
|
platform: 'browser',
|
|
define: {
|
|
API_URL: JSON.stringify(`http://127.0.0.1:${process.env.CORTEX_API_PORT ?? "39291"}`),
|
|
},
|
|
})
|