Nå mulig å kjøre applikasjonen lokalt

Co-authored-by: Sindre Kjelsrud <sindre.kjelsrud@nav.no>
Co-authored-by: Markus A. R. Johansen <markus.aleksander.rakil.johansen@nav.no>
Co-authored-by: Christian Bülow Skovborg <christian.bulow.skovborg@nav.no>
This commit is contained in:
Amalie Mansåker 2023-07-20 13:27:42 +02:00
parent 9248607efa
commit aa167d58a0
3 changed files with 26 additions and 1 deletions

View file

@ -4,4 +4,13 @@ import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
server: {
headers: {},
proxy: {
'/api': {
target: 'http://localhost:8080',
changeOrigin: true,
},
},
},
})