Skip to content

Commit

Permalink
fix: use relative url for live trains data
Browse files Browse the repository at this point in the history
  • Loading branch information
davwheat committed Apr 8, 2024
1 parent d85da8c commit 7df18b8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/components/AmeyLiveTrainAnnouncements.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -820,10 +820,7 @@ export function LiveTrainAnnouncements<SystemKeys extends string>({

try {
const resp = await fetch(
process.env.NODE_ENV === 'development'
? `http://localhost:8787/get-services?${params}`
: //`http://localhost:34143/get-services?${params}`
`https://railannouncements.co.uk/api/get-services?${params}`,
process.env.NODE_ENV === 'development' ? `http://localhost:8787/get-services?${params}` : `/api/get-services?${params}`,
)

if (!resp.ok) {
Expand Down

0 comments on commit 7df18b8

Please sign in to comment.