Skip to content

Commit dde1fd9

Browse files
Default to localfunc for dev, hostedfunc for live
1 parent 55cc69e commit dde1fd9

5 files changed

Lines changed: 4 additions & 13 deletions

File tree

web/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
BROWSER=none
2-
REACT_APP_DEFAULT_APISOURCE=HostedFunc
2+
VITE_DEFAULT_APISOURCE=HostedFunc
33
PUBLIC_URL=/CodeConverter

web/.env.development

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
VITE_PORT=44463
2-
VITE_DEFAULT_APISOURCE=LocalWeb
2+
VITE_DEFAULT_APISOURCE=LocalFunc
33

web/public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
<head data-apisource="%REACT_APP_DEFAULT_APISOURCE%">
3+
<head data-apisource="%VITE_DEFAULT_APISOURCE%">
44
<meta charset="utf-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
66
<meta name="theme-color" content="#000000">

web/public/vite.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

web/src/ClientSettings.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,9 @@
44
"version": "/api/Version/"
55
},
66
"baseUris": [
7-
{
8-
"key": "SameApp",
9-
"baseUri": ""
10-
},
11-
{
12-
"key": "LocalWeb",
13-
"baseUri": "https://localhost:7183"
14-
},
157
{
168
"key": "LocalFunc",
17-
"baseUri": "http://localhost:7071"
9+
"baseUri": "http://localhost:7144"
1810
},
1911
{
2012
"key": "HostedFunc",

0 commit comments

Comments
 (0)