mirror of
https://github.com/pockethost/pockethost.git
synced 2025-05-21 14:26:43 +00:00
24 lines
565 B
TypeScript
24 lines
565 B
TypeScript
import { enhancedImages } from '@sveltejs/enhanced-img'
|
|
import { sveltekit } from '@sveltejs/kit/vite'
|
|
import type { UserConfig } from 'vite'
|
|
|
|
const isProd = process.env.NODE_ENV === 'production'
|
|
const config: UserConfig = {
|
|
plugins: [enhancedImages(), sveltekit()],
|
|
optimizeDeps: {
|
|
include: ['highlight.js', 'highlight.js/lib/core'],
|
|
},
|
|
envPrefix: 'PUBLIC_',
|
|
envDir: isProd ? '.' : undefined,
|
|
server: {
|
|
port: 5174,
|
|
strictPort: true,
|
|
host: 'app.pockethost.lvh.me',
|
|
hmr: {
|
|
clientPort: 5174,
|
|
},
|
|
},
|
|
}
|
|
|
|
export default config
|