Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
NotZarifGithub committed Dec 6, 2023
1 parent a06ab99 commit c7f7704
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions client/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react-swc'
// vite.config.js
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react-swc';

// https://vitejs.dev/config/
export default defineConfig({
server: {
proxy: {
'/api': {
target: 'https://inspiroverse.onrender.com',
secure: true,
changeOrigin: true, // This line is added
secure: false, // Change this to false
},
},
},
plugins: [react()],
})
});

0 comments on commit c7f7704

Please sign in to comment.