Skip to content

Commit

Permalink
Add some debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenhuyn committed Dec 27, 2023
1 parent 67e47ac commit 862d590
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ A dialogue game.

Using Vite, ChatGPT and Lit Web Components.

[Rusty Backend Repo](https://github.com/stevenhuyn/plakait-backend)
[Backend Repo](https://github.com/stevenhuyn/plakait-backend)

## Outdated Screenshot
![Example UI showing a completed game](./media/example-game.png)
Expand Down
5 changes: 5 additions & 0 deletions src/utility/Api.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
import { Scenario } from "./Scenario";

console.log(window.location.host);
console.log(window.location.host.includes("plakait"));

const BACKEND_BASE_URL =
window.location.host.includes("plakait")
? new URL("https://plakait-backend-production.up.railway.app/")
: new URL("http://localhost:8000/");

console.log("BACKEND_BASE_URL", BACKEND_BASE_URL);

export type BotMessage = {
type: "Bot";
name: string;
Expand Down

0 comments on commit 862d590

Please sign in to comment.