mirror of
https://github.com/pinry/pinry.git
synced 2026-06-23 16:21:22 +02:00
Feature: Add api proxy for vue-js
This commit is contained in:
committed by
Isaac Bythewood
parent
05fc620642
commit
cf7914e593
14
pinry-spa/vue.config.js
Normal file
14
pinry-spa/vue.config.js
Normal file
@@ -0,0 +1,14 @@
|
||||
module.exports = {
|
||||
devServer: {
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://localhost:8000/',
|
||||
changeOrigin: true,
|
||||
ws: true,
|
||||
pathRewrite: {
|
||||
'^/api': '',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user