import { defineConfig } from 'vite'; export default defineConfig(env => ({ root: env.command === 'serve' ? 'sample' : undefined }))