nitro.externals.external doesn't prevent Rollup from inlining the require. rollupConfig.external tells Rollup directly to leave the import as-is, so Node resolves it from node_modules at runtime. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
18 lines
393 B
TypeScript
18 lines
393 B
TypeScript
export default defineNuxtConfig({
|
|
compatibilityDate: '2025-01-01',
|
|
future: { compatibilityVersion: 4 },
|
|
modules: ['@nuxt/ui'],
|
|
|
|
runtimeConfig: {
|
|
adminPassword: process.env.ADMIN_PASSWORD || 'admin',
|
|
dbPath: process.env.DB_PATH || './data/brainstorm.db',
|
|
},
|
|
|
|
nitro: {
|
|
experimental: { tasks: true },
|
|
rollupConfig: {
|
|
external: ['better-sqlite3'],
|
|
},
|
|
},
|
|
})
|