Add proxy for api
This commit is contained in:
parent
97d5ff6ea2
commit
cc4d659177
@ -4,6 +4,13 @@ import vuetify from '@vuetify/vite-plugin'
|
|||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
server: {
|
||||||
|
proxy: {
|
||||||
|
'/api': {
|
||||||
|
target: 'http://localhost:8000/',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
plugins: [vue(),
|
plugins: [vue(),
|
||||||
vuetify({ autoImport: true }), // Enabled by default
|
vuetify({ autoImport: true }), // Enabled by default
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user