|
Last change
on this file was 2e0035f, checked in by Acko <lavurovski.a65@…>, 8 days ago |
|
Initial Commit
|
-
Property mode
set to
100644
|
|
File size:
399 bytes
|
| Line | |
|---|
| 1 | import { defineConfig } from 'vite'
|
|---|
| 2 | import react from '@vitejs/plugin-react'
|
|---|
| 3 |
|
|---|
| 4 | export default defineConfig({
|
|---|
| 5 | plugins: [react()],
|
|---|
| 6 | server: {
|
|---|
| 7 | port: 5173,
|
|---|
| 8 | // Calls to /api are forwarded to Spring Boot, so the browser sees a single
|
|---|
| 9 | // origin during development and CORS never gets in the way.
|
|---|
| 10 | proxy: {
|
|---|
| 11 | '/api': { target: 'http://localhost:8080', changeOrigin: true }
|
|---|
| 12 | }
|
|---|
| 13 | }
|
|---|
| 14 | })
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.