lora-studio / vite.config.ts
enzostvs's picture
enzostvs HF staff
image url
fd1f23b
raw
history blame
398 Bytes
import { sveltekit } from '@sveltejs/kit/vite';
import { enhancedImages } from '@sveltejs/enhanced-img';
import { defineConfig, searchForWorkspaceRoot } from 'vite';
import { env } from '$env/dynamic/public';
export default defineConfig({
plugins: [
enhancedImages(),
sveltekit()
],
server: {
fs: {
allow: [searchForWorkspaceRoot(process.cwd()), env.PUBLIC_FILE_UPLOAD_DIR]
}
}
});