Skip to content

Commit 97e82ad

Browse files
committed
Test env setup
1 parent b323fce commit 97e82ad

2 files changed

Lines changed: 16 additions & 12 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"apiUrl": "https://localhost:7069/api/",
2+
"apiUrl": "https://dddsw2023pocketdddserverwebapitest.azurewebsites.net/api/",
33
"fakeBackend": false
44
}

PocketDDD.BlazorClient/PocketDDD.BlazorClient/wwwroot/index.html

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,21 @@
2121
<a class="dismiss">🗙</a>
2222
</div>
2323
<script src="_framework/blazor.webassembly.js" autostart="false"></script>
24-
<script>
25-
if (window.location.hostname.includes("localhost") || window.location.hostname.includes("development") ) {
26-
Blazor.start({
27-
environment: "Development"
28-
});
29-
} else {
30-
Blazor.start({
31-
environment: "Production"
32-
});
33-
}
34-
</script>
24+
<script>
25+
if (window.location.hostname.includes("localhost") || window.location.hostname.includes("development")) {
26+
Blazor.start({
27+
environment: "Development"
28+
});
29+
} else if (window.location.hostname.includes("test")) {
30+
Blazor.start({
31+
environment: "Test"
32+
});
33+
} else {
34+
Blazor.start({
35+
environment: "Production"
36+
});
37+
}
38+
</script>
3539

3640
<script src="_content/MudBlazor/MudBlazor.min.js"></script>
3741
<script>navigator.serviceWorker.register('service-worker.js');</script>

0 commit comments

Comments
 (0)