You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
598 B
28 lines
598 B
import { sveltekit } from '@sveltejs/kit/vite'; |
|
import { defineConfig } from 'vite'; |
|
import { execSync } from 'child_process'; |
|
|
|
export default defineConfig({ |
|
plugins: [ |
|
sveltekit(), |
|
{ |
|
name: 'generate-healthz', |
|
buildStart() { |
|
try { |
|
execSync('node scripts/generate-healthz.js', { stdio: 'inherit' }); |
|
} catch (error) { |
|
console.warn('Failed to generate healthz.json:', error); |
|
} |
|
} |
|
} |
|
], |
|
server: { |
|
port: 5173, |
|
strictPort: false |
|
}, |
|
build: { |
|
target: 'esnext', |
|
sourcemap: true, |
|
manifest: false |
|
} |
|
});
|
|
|