Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ const buildConfig = ({ mode }: { mode: string }) => {
};

// https://vitejs.dev/config/
export default async ({ command, mode }: { command: string; mode: string }) => {
export default defineConfig(async ({ command, mode }) => {
if (command === 'serve') {
// for 'serve' mode, we only want to serve the client bundle locally
return clientServeConfig();
Expand All @@ -212,4 +212,4 @@ export default async ({ command, mode }: { command: string; mode: string }) => {
return buildConfig({ mode });
}
return {};
};
});