moshing-mammut/vite.config.ts

17 lines
359 B
TypeScript
Raw Normal View History

2023-03-19 16:00:49 +00:00
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig, searchForWorkspaceRoot } from 'vite';
2023-03-19 16:00:49 +00:00
export default defineConfig({
plugins: [sveltekit()],
server: {
fs: {
allow: [
// search up for workspace root
searchForWorkspaceRoot(process.cwd()),
// your custom rules
'avatars'
]
}
}
2023-03-19 16:00:49 +00:00
});