Fix port settings for vite dev server
This commit is contained in:
parent
515eb28ba6
commit
04e0462cee
|
@ -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
|
||||
|
|
|
@ -74,6 +74,10 @@ module.exports = {
|
|||
],
|
||||
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue'],
|
||||
},
|
||||
server: {
|
||||
port: 5000,
|
||||
strictPort: true,
|
||||
},
|
||||
build: {
|
||||
target: 'es2015',
|
||||
rollupOptions: {
|
||||
|
|
Reference in New Issue
Block a user