aboutsummaryrefslogtreecommitdiffstats
path: root/src/app
diff options
context:
space:
mode:
Diffstat (limited to 'src/app')
-rw-r--r--src/app/page.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/app/page.tsx b/src/app/page.tsx
index ed29653..fb7f1a3 100644
--- a/src/app/page.tsx
+++ b/src/app/page.tsx
@@ -2,13 +2,13 @@ import SubscriberTable, {SubscriberDataTableProp} from '../components/Subscriber
import TitleBar from '../components/TitleBar/TitleBar';
async function Home(){
- const apiUrl = process.env.NEXT_PUBLIC_API_URL
+ const graphURL = process.env.NEXT_PUBLIC_GRAPH_URL
const data: SubscriberDataTableProp = await getData();
return(
<>
<TitleBar title="PhaseTracker" backgroundColor='black' />
<div className="sm:block hidden mt-4" style={{ overflow: 'hidden', height: '105vh', position: 'relative' }}>
- <iframe src={apiUrl} style={{ position: 'absolute', top: 0, left: 0 }} width="100%" height="100%"></iframe>
+ <iframe src={graphURL} style={{ position: 'absolute', top: 0, left: 0 }} width="100%" height="100%"></iframe>
</div>
<SubscriberTable {...data} />
</>
@@ -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'
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage