feat: change default port (#207)

Change default port from 8989 to 7474
This commit is contained in:
Ludvig Lundgren 2022-03-26 21:38:57 +01:00 committed by GitHub
parent 2d3ab67604
commit ffa2447c59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 8 deletions

View file

@ -2,7 +2,7 @@
"name": "web",
"version": "0.1.0",
"private": true,
"proxy": "http://127.0.0.1:8989",
"proxy": "http://127.0.0.1:7474",
"homepage": ".",
"dependencies": {
"@fontsource/inter": "^4.5.4",

View file

@ -26,7 +26,7 @@ export function baseUrl() {
// get sseBaseUrl for SSE
export function sseBaseUrl() {
if (process.env.NODE_ENV === "development")
return `http://localhost:8989/`;
return `http://localhost:7474/`;
return `${window.location.origin}${baseUrl()}`;
}