diff --git a/client/vite.config.ts b/client/vite.config.ts index f2af69c..45f8814 100644 --- a/client/vite.config.ts +++ b/client/vite.config.ts @@ -2,17 +2,23 @@ import react from '@vitejs/plugin-react'; import { defineConfig } from 'vite'; import tailwindcss from '@tailwindcss/vite'; -// https://vite.dev/config/ export default defineConfig({ plugins: [react(), tailwindcss()], base: '/project2/', - // sender graphql videre til backend server: { proxy: { '/project2/graphql': { - target: 'http://localhost:3001', - rewrite: (path) => path.replace(/^\/project2/, ''), + target: 'http://it2810-06.idi.ntnu.no', + changeOrigin: true, + }, + '/project2/uploads': { + target: 'http://it2810-06.idi.ntnu.no', + changeOrigin: true, + }, + '/project2/upload': { + target: 'http://it2810-06.idi.ntnu.no', + changeOrigin: true, }, }, }, -}); +}); \ No newline at end of file