diff options
| author | Pinapelz <yukais@pinapelz.com> | 2023-12-15 10:44:09 -0800 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2023-12-15 10:44:09 -0800 |
| commit | d25c4ff7f2252f363c7403cd2ad807c46caf2383 (patch) | |
| tree | b9ae610680ce5b1a2d0c175f5a403a9cfe3c4cfb /src/app | |
| parent | e1df1ff16bce76bb3c21d80e96db08b5a1ec28a2 (diff) | |
point env vars to new testing API endpoint
Diffstat (limited to 'src/app')
| -rw-r--r-- | src/app/page.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app/page.tsx b/src/app/page.tsx index ed29653..e02e26e 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -2,7 +2,7 @@ import SubscriberTable, {SubscriberDataTableProp} from '../components/Subscriber import TitleBar from '../components/TitleBar/TitleBar'; async function Home(){ - const apiUrl = process.env.NEXT_PUBLIC_API_URL + const apiUrl = process.env.NEXT_PUBLIC_API_URL_TESTING const data: SubscriberDataTableProp = await getData(); return( <> @@ -16,7 +16,7 @@ async function Home(){ } async function getData(){ - const apiUrl = process.env.NEXT_PUBLIC_API_URL + const apiUrl = process.env.NEXT_PUBLIC_API_URL_TESTING const response = await fetch(apiUrl+'/api/subscribers', { headers: { 'Cache-Control': 'no-cache' |
