Skip to content

Commit

Permalink
refactor: refactored my vite.config.ts file
Browse files Browse the repository at this point in the history
  • Loading branch information
albert-byiringiro committed Dec 19, 2024
1 parent 5d4d261 commit b90dce3
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions client/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,7 @@ import react from '@vitejs/plugin-react';
export default defineConfig({
plugins: [react()],
server: {
port: 8080,
},
css: {
modules: {
localsConvention: 'camelCaseOnly',
},
},
define: {
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV),
},
port: parseInt(process.env.PORT || '3000'),
host: true
}
});

0 comments on commit b90dce3

Please sign in to comment.