|
Last change
on this file since fa32d0f was 92e7c7a, checked in by veronika-ils <ilioskaveronika@…>, 9 hours ago |
|
Petify fullstack project
|
-
Property mode
set to
100644
|
|
File size:
608 bytes
|
| Line | |
|---|
| 1 | import { fileURLToPath, URL } from 'node:url'
|
|---|
| 2 |
|
|---|
| 3 | import { defineConfig } from 'vite'
|
|---|
| 4 | import vue from '@vitejs/plugin-vue'
|
|---|
| 5 | import vueDevTools from 'vite-plugin-vue-devtools'
|
|---|
| 6 |
|
|---|
| 7 | // https://vite.dev/config/
|
|---|
| 8 | export default defineConfig({
|
|---|
| 9 | plugins: [
|
|---|
| 10 | vue(),
|
|---|
| 11 | vueDevTools(),
|
|---|
| 12 | ],
|
|---|
| 13 | server: {
|
|---|
| 14 | proxy: {
|
|---|
| 15 | '/api': {
|
|---|
| 16 | target: 'http://localhost:8081',
|
|---|
| 17 | changeOrigin: true,
|
|---|
| 18 | },
|
|---|
| 19 | '/uploads': {
|
|---|
| 20 | target: 'http://localhost:8081',
|
|---|
| 21 | changeOrigin: true,
|
|---|
| 22 | },
|
|---|
| 23 | },
|
|---|
| 24 | },
|
|---|
| 25 | resolve: {
|
|---|
| 26 | alias: {
|
|---|
| 27 | '@': fileURLToPath(new URL('./src', import.meta.url))
|
|---|
| 28 | },
|
|---|
| 29 | },
|
|---|
| 30 | })
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.