fix(dev): switch frontend dev port from 4000 to 4005 due to Windows port exclusion
Deploy Canina / deploy (push) Has been cancelled
Deploy Canina / deploy (push) Has been cancelled
This commit is contained in:
1 parent
3f7c5a380a
commit
de038dba7c
3 files changed
+3
-3
No files matched your search
@@ -85,7 +85,7 @@ export default function Products() {
|
||||
const getStoreProductUrl = (slug: string) => {
|
||||
const isDev = window.location.hostname === 'localhost' || window.location.hostname === '127.0.0.1';
|
||||
if (isDev) {
|
||||
return `http://localhost:4000/shop/${slug}`;
|
||||
return `http://localhost:4005/shop/${slug}`;
|
||||
}
|
||||
// Production fallback based on actual URL
|
||||
const storeOrigin = window.location.origin.replace('admin', 'www');
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev -p 4000",
|
||||
"dev": "next dev -p 4005",
|
||||
"build": "next build",
|
||||
"start": "next start",
|
||||
"lint": "eslint"
|
||||
|
||||
@@ -2,7 +2,7 @@ const { exec } = require('child_process');
|
||||
const http = require('http');
|
||||
|
||||
const URLS = [
|
||||
{ url: 'http://localhost:4000', name: 'Frontend Store' },
|
||||
{ url: 'http://localhost:4005', name: 'Frontend Store' },
|
||||
{ url: 'http://127.0.0.1:5050', name: 'Admin Panel' },
|
||||
{ url: 'http://localhost:4001/api/docs', name: 'Backend API Docs' }
|
||||
];
|
||||
|
||||
Reference in new issue
Block a user