init
This commit is contained in:
parent
7d1af32688
commit
f3adf19649
139 changed files with 25604 additions and 0 deletions
18
client_2.1/vue.config.js
Normal file
18
client_2.1/vue.config.js
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
const { defineConfig } = require('@vue/cli-service');
|
||||
|
||||
module.exports = defineConfig({
|
||||
transpileDependencies: true,
|
||||
devServer: {
|
||||
proxy: {
|
||||
// Wszystkie zapytania zaczynające się od /user LUB /content
|
||||
// zostaną przekierowane do serwera backendowego.
|
||||
'/api': {
|
||||
target: 'http://127.0.0.1:3000', // Adres backendu
|
||||
changeOrigin: true,
|
||||
secure: false,
|
||||
// Usuwamy /api z początku ścieżki przed wysłaniem do backendu
|
||||
pathRewrite: { '^/api': '' },
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue