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
|
CYPRESS_DEFAULT_COMMAND_TIMEOUT: 10000
|
||||||
commands:
|
commands:
|
||||||
- sed -i 's/localhost/api/g' index.html
|
- 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
|
- yarn test:frontend --browser chrome
|
||||||
depends_on:
|
depends_on:
|
||||||
- build
|
- build
|
||||||
|
|
|
@ -74,6 +74,10 @@ module.exports = {
|
||||||
],
|
],
|
||||||
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue'],
|
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue'],
|
||||||
},
|
},
|
||||||
|
server: {
|
||||||
|
port: 5000,
|
||||||
|
strictPort: true,
|
||||||
|
},
|
||||||
build: {
|
build: {
|
||||||
target: 'es2015',
|
target: 'es2015',
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
|
|
Reference in New Issue
Block a user