We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4062ab commit 10cce05Copy full SHA for 10cce05
demo/pages/index.js
@@ -146,7 +146,8 @@ Index.getInitialProps = async function () {
146
147
// Set a random page between 1 and 100
148
const randomPage = Math.floor(Math.random() * 100) + 1
149
- const server = dev ? 'http://localhost:3000/shows1.json' : `https://api.tvmaze.com/shows?page=${randomPage}`;
+ // FIXME: stub out in dev
150
+ const server = dev ? `https://api.tvmaze.com/shows?page=${randomPage}` : `https://api.tvmaze.com/shows?page=${randomPage}`;
151
152
// Get the data
153
const res = await fetch(server);
0 commit comments