Skip to content

Commit

Permalink
chore: use port 7001 instead of 5001 to avoid conflicts with forms (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
msebastianb authored Jul 2, 2024
1 parent 5663928 commit a5a39b5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ ports:
port: 5432
visibility: public
onOpen: ignore
- port: 5001
# OGCIO - formsie port collision fixed
- port: 7001
onOpen: ignore
- port: 5002
onOpen: ignore
Expand Down
3 changes: 2 additions & 1 deletion packages/core/src/middleware/koa-spa-proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ import serveStatic from '#src/middleware/koa-serve-static.js';
export default function koaSpaProxy<StateT, ContextT extends IRouterParamContext, ResponseBodyT>(
mountedApps: string[],
packagePath = 'experience',
port = 5001,
// OGCIO - formsie port collision fixed
port = 7001,
prefix = ''
): MiddlewareType<StateT, ContextT, ResponseBodyT> {
type Middleware = MiddlewareType<StateT, ContextT, ResponseBodyT>;
Expand Down
3 changes: 2 additions & 1 deletion packages/core/src/routes/applications/application.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ const applicationRoutes = await pickDefault(import('./application.js'));
const customClientMetadata = {
corsAllowedOrigins: [
'http://localhost:5000',
'http://localhost:5001',
// OGCIO - formsie port collision fixed
'http://localhost:7001',
'https://silverhand.com',
'capacitor://localhost',
],
Expand Down
2 changes: 1 addition & 1 deletion packages/experience/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"scripts": {
"precommit": "lint-staged",
"start": "parcel src/index.html",
"dev": "cross-env PORT=5001 parcel src/index.html --no-cache --hmr-port 6001",
"dev": "cross-env PORT=7001 parcel src/index.html --no-cache --hmr-port 6001",
"check": "tsc --noEmit",
"build": "pnpm check && rm -rf dist && parcel build src/index.html --no-autoinstall --no-cache --detailed-report",
"lint": "eslint --ext .ts --ext .tsx src",
Expand Down

0 comments on commit a5a39b5

Please sign in to comment.