Skip to content

Commit

Permalink
Testing Deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
shivam-tiwari-21 committed Jan 4, 2025
1 parent a3d219b commit b116f13
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,12 @@ export default defineConfig({
plugins: [react()],
define: {
'process.env': process.env, // Pass environment variables explicitly
}, server: {
port: process.env.PORT || 3000, // Use Render's PORT variable or default to 3000
host: '0.0.0.0', // Bind to all network interfaces
},
preview: {
port: process.env.PORT || 3000, // Use Render's PORT variable or default to 3000
host: '0.0.0.0', // Bind to all network interfaces
},
})

0 comments on commit b116f13

Please sign in to comment.