Add proxy for api

This commit is contained in:
Garrett Mills 2022-04-09 13:02:30 -05:00
parent 97d5ff6ea2
commit cc4d659177

View File

@ -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
], ],