Added dev server options
Implemented basic structure for mock service
This commit is contained in:
@@ -8,6 +8,27 @@ export default defineConfig({
|
||||
plugins: [
|
||||
vue(),
|
||||
],
|
||||
server:{
|
||||
port: 80,
|
||||
host: '0.0.0.0',
|
||||
proxy : {
|
||||
'/java': {
|
||||
target:'http://xmltools-backend:8081/',
|
||||
rewrite: (path) => path.replace(/^\/java/, ''),
|
||||
},
|
||||
'/libxml': {
|
||||
target:'http://xmltools-libxml-backend/',
|
||||
rewrite: (path) => path.replace(/^\/libxml/, ''),
|
||||
},
|
||||
'/mock': {
|
||||
target:'http://xmltools-mocked-services:8097/',
|
||||
rewrite: (path) => path.replace(/^\/mock/, ''),
|
||||
},
|
||||
'/api/mock': {
|
||||
target: 'http://xmltools-mocked-services:8097/'
|
||||
}
|
||||
},
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
||||
|
||||
Reference in New Issue
Block a user