Skip to content
This repository has been archived by the owner on Oct 12, 2024. It is now read-only.

Commit

Permalink
config updates
Browse files Browse the repository at this point in the history
  • Loading branch information
emre-cil committed Aug 22, 2022
1 parent 2b60198 commit 6f216f1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"dev": "vite --open",
"build": "vite build",
"preview": "vite preview"
},
Expand Down
22 changes: 18 additions & 4 deletions vite.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,21 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';

// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()]
})
server: {
port: 3000,
proxy: {
'/api': {
target: 'http://localhost:8080',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ''),
},
},
},

build: {
outDir: 'dist/app',
},
plugins: [react()],
});

0 comments on commit 6f216f1

Please sign in to comment.