jan/server/rolldown.config.mjs
Louis fd2d23869c
feat: rotate api token for each run (#4820)
* feat: rotate api token for each run

* chore: correct github repo url

* chore: correct github api url
2025-03-20 21:41:41 +07:00

22 lines
471 B
JavaScript

import { defineConfig } from 'rolldown'
export default defineConfig([
{
input: 'index.ts',
output: {
format: 'cjs',
file: 'dist/index.js',
sourcemap: true,
inlineDynamicImports: true,
},
resolve: {
extensions: ['.js', '.ts'],
},
external: ['@fastify/swagger-ui'],
platform: 'node',
define: {
CORTEX_API_URL: JSON.stringify(`http://127.0.0.1:${process.env.CORTEX_API_PORT ?? "39291"}`),
}
},
])