feat: change port to 4173
See: https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md#default-preview-port
This commit is contained in:
parent
95390390a7
commit
98cb14a86c
5 changed files with 5 additions and 5 deletions
|
@ -120,7 +120,7 @@ steps:
|
||||||
from_secret: cypress_project_key
|
from_secret: cypress_project_key
|
||||||
commands:
|
commands:
|
||||||
- sed -i 's/localhost/api/g' dist/index.html
|
- sed -i 's/localhost/api/g' dist/index.html
|
||||||
- yarn serve:dist & npx wait-on http://localhost:5000
|
- yarn serve:dist & npx wait-on http://localhost:4173
|
||||||
- yarn test:frontend --browser chrome --record
|
- yarn test:frontend --browser chrome --record
|
||||||
depends_on:
|
depends_on:
|
||||||
- dependencies
|
- dependencies
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"baseUrl": "http://localhost:5000",
|
"baseUrl": "http://localhost:4173",
|
||||||
"env": {
|
"env": {
|
||||||
"API_URL": "http://localhost:3456/api/v1",
|
"API_URL": "http://localhost:3456/api/v1",
|
||||||
"TEST_SECRET": "averyLongSecretToSe33dtheDB"
|
"TEST_SECRET": "averyLongSecretToSe33dtheDB"
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"serve": "vite",
|
"serve": "vite",
|
||||||
"serve:dist-dev": "node scripts/serve-dist.js",
|
"serve:dist-dev": "node scripts/serve-dist.js",
|
||||||
"serve:dist": "vite preview",
|
"serve:dist": "vite preview --port 4173",
|
||||||
"build": "vite build && workbox copyLibraries dist/",
|
"build": "vite build && workbox copyLibraries dist/",
|
||||||
"build:modern-only": "BUILD_MODERN_ONLY=true vite build && workbox copyLibraries dist/",
|
"build:modern-only": "BUILD_MODERN_ONLY=true vite build && workbox copyLibraries dist/",
|
||||||
"build:dev": "vite build -m development --outDir dist-dev/",
|
"build:dev": "vite build -m development --outDir dist-dev/",
|
||||||
|
|
|
@ -3,7 +3,7 @@ const express = require('express')
|
||||||
const app = express()
|
const app = express()
|
||||||
|
|
||||||
const p = path.join(__dirname, '..', 'dist-dev')
|
const p = path.join(__dirname, '..', 'dist-dev')
|
||||||
const port = 5000
|
const port = 4173
|
||||||
|
|
||||||
app.use(express.static(p))
|
app.use(express.static(p))
|
||||||
// Handle urls set by the frontend
|
// Handle urls set by the frontend
|
||||||
|
|
|
@ -130,7 +130,7 @@ export default defineConfig({
|
||||||
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue'],
|
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue'],
|
||||||
},
|
},
|
||||||
server: {
|
server: {
|
||||||
port: 5000,
|
port: 4173,
|
||||||
strictPort: true,
|
strictPort: true,
|
||||||
},
|
},
|
||||||
build: {
|
build: {
|
||||||
|
|
Loading…
Reference in a new issue