cryptgeon/packages/frontend/vite.config.js
2025-01-17 18:11:03 +01:00

20 lines
387 B
JavaScript

import { sveltekit } from '@sveltejs/kit/vite'
import precompileIntl from 'svelte-intl-precompile/sveltekit-plugin'
const port = 3000
/** @type {import('vite').UserConfig} */
const config = {
clearScreen: false,
server: {
port,
proxy: {
'/api': 'http://localhost:8000',
},
},
preview: { port },
plugins: [sveltekit(), precompileIntl('locales')],
}
export default config