-
-{/*
-**Configuration Settings**:
-- `CHROME_PATH` (e.g. `/usr/bin/chromium`) - The path the the Chromium executable
-- `PORT` (e.g. `3000`) - Port to serve the API, when running server.js
-- `DISABLE_GUI` (e.g. `false`) - Disable the GUI, and only serve the API
-- `API_TIMEOUT_LIMIT` (e.g. `10000`) - The timeout limit for API requests, in milliseconds
-- `REACT_APP_API_ENDPOINT` (e.g. `/api`) - The endpoint for the API (can be local or remote) */}
-
API Documentation
diff --git a/src/web-check-live/views/Home.tsx b/src/web-check-live/views/Home.tsx
index cab18b8..ce22f5a 100644
--- a/src/web-check-live/views/Home.tsx
+++ b/src/web-check-live/views/Home.tsx
@@ -1,6 +1,6 @@
import styled from '@emotion/styled';
import { type ChangeEvent, type FormEvent, useState, useEffect } from 'react';
-import { useNavigate, useLocation, type NavigateOptions } from 'react-router-dom';
+import { Link, useNavigate, useLocation, type NavigateOptions } from 'react-router-dom';
import Heading from 'web-check-live/components/Form/Heading';
import Input from 'web-check-live/components/Form/Input'
@@ -217,10 +217,12 @@ const Home = (): JSX.Element => {
-
-
- Web Check
-
+
+
+
+ Web Check
+
+
{
Supported Checks
diff --git a/src/web-check-live/views/Results.tsx b/src/web-check-live/views/Results.tsx
index 77d1a3a..d714f39 100644
--- a/src/web-check-live/views/Results.tsx
+++ b/src/web-check-live/views/Results.tsx
@@ -248,9 +248,8 @@ const Results = (props: { address?: string } ): JSX.Element => {
const urlTypeOnly = ['url'] as AddressType[]; // Many jobs only run with these address types
- // const api = process.env.REACT_APP_API_ENDPOINT || '/api'; // Where is the API hosted?
- const api = '/api'; // Where is the API hosted?
-
+ const api = import.meta.env.PUBLIC_API_ENDPOINT || '/api'; // Where is the API hosted?
+
// Fetch and parse IP address for given URL
const [ipAddress, setIpAddress] = useMotherHook({
jobId: 'get-ip',