Fix port settings for vite dev server

This commit is contained in:
kolaente 2021-02-23 23:07:27 +01:00
parent 515eb28ba6
commit 04e0462cee
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
2 changed files with 5 additions and 1 deletions

View File

@ -98,7 +98,7 @@ steps:
CYPRESS_DEFAULT_COMMAND_TIMEOUT: 10000
commands:
- sed -i 's/localhost/api/g' index.html
- yarn serve & npx wait-on http://localhost:8080
- yarn serve & npx wait-on http://localhost:5000
- yarn test:frontend --browser chrome
depends_on:
- build

View File

@ -74,6 +74,10 @@ module.exports = {
],
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue'],
},
server: {
port: 5000,
strictPort: true,
},
build: {
target: 'es2015',
rollupOptions: {