Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/src/Pages/ViewDebate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const ViewDebate: React.FC = () => {
}

const protocol = window.location.protocol === "https:" ? "wss:" : "ws:";
const apiUrl = import.meta.env.VITE_API_URL;
const apiUrl = import.meta.env.VITE_BASE_URL;
let host = window.location.host;
if (apiUrl) {
try {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/hooks/useDebateWS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const useDebateWS = (debateId: string | null) => {

// Get WebSocket URL
const protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:';
const apiUrl = import.meta.env.VITE_API_URL;
const apiUrl = import.meta.env.VITE_BASE_URL;
let host = window.location.host;
if (apiUrl) {
try {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/services/notificationService.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const API_URL = import.meta.env.VITE_API_URL || 'http://localhost:1313';
const API_URL = import.meta.env.VITE_BASE_URL || 'http://localhost:1313';

export interface Notification {
id: string;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/services/teamService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { getAuthToken } from "@/utils/auth";

// Team service for API calls
const API_BASE_URL =
import.meta.env.VITE_API_URL?.replace(/\/+$/, "") ?? "http://localhost:1313";
import.meta.env.VITE_BASE_URL?.replace(/\/+$/, "") ?? "http://localhost:1313";

export interface Team {
id: string;
Expand Down