Skip to content

Commit 10cce05

Browse files
author
Tiffany Le-Nguyen
committed
chore: get back actual call to shows
1 parent c4062ab commit 10cce05

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

demo/pages/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ Index.getInitialProps = async function () {
146146

147147
// Set a random page between 1 and 100
148148
const randomPage = Math.floor(Math.random() * 100) + 1
149-
const server = dev ? 'http://localhost:3000/shows1.json' : `https://api.tvmaze.com/shows?page=${randomPage}`;
149+
// FIXME: stub out in dev
150+
const server = dev ? `https://api.tvmaze.com/shows?page=${randomPage}` : `https://api.tvmaze.com/shows?page=${randomPage}`;
150151

151152
// Get the data
152153
const res = await fetch(server);

0 commit comments

Comments
 (0)