Skip to content

Commit

Permalink
fix(general): bot to use different config when in prod/preview
Browse files Browse the repository at this point in the history
  • Loading branch information
tuanddd committed Sep 7, 2023
1 parent b4cb7a6 commit 52f9e73
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@ import checker from "vite-plugin-checker";

// https://vitejs.dev/config/
export default defineConfig({
plugins: [checker({ typescript: true }), tsconfigPaths()],
plugins:
process.env.NODE_ENV === "production" || process.env.NODE_ENV === "preview"
? [tsconfigPaths()]
: [checker({ typescript: true }), tsconfigPaths()],
});

0 comments on commit 52f9e73

Please sign in to comment.