source: petify-frontend/vite.config.ts@ 92e7c7a

Last change on this file since 92e7c7a was 92e7c7a, checked in by veronika-ils <ilioskaveronika@…>, 6 hours ago

Petify fullstack project

  • Property mode set to 100644
File size: 608 bytes
RevLine 
[92e7c7a]1import { fileURLToPath, URL } from 'node:url'
2
3import { defineConfig } from 'vite'
4import vue from '@vitejs/plugin-vue'
5import vueDevTools from 'vite-plugin-vue-devtools'
6
7// https://vite.dev/config/
8export 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.