mirror of
https://github.com/pockethost/pockethost.git
synced 2025-03-30 15:08:30 +00:00
15 lines
359 B
TypeScript
15 lines
359 B
TypeScript
import { sveltekit } from '@sveltejs/kit/vite'
|
|
import type { UserConfig } from 'vite'
|
|
|
|
const isProd = process.env.NODE_ENV === 'production'
|
|
const config: UserConfig = {
|
|
plugins: [sveltekit()],
|
|
optimizeDeps: {
|
|
include: ['highlight.js', 'highlight.js/lib/core'],
|
|
},
|
|
envPrefix: 'PUBLIC_',
|
|
envDir: isProd ? '.' : undefined,
|
|
}
|
|
|
|
export default config
|