diff --git a/examples/with-static-export/next.config.js b/examples/with-static-export/next.config.js index 709cb699..b4768999 100644 --- a/examples/with-static-export/next.config.js +++ b/examples/with-static-export/next.config.js @@ -3,7 +3,7 @@ const fetch = require('isomorphic-fetch') module.exports = { async exportPathMap () { // we fetch our list of posts, this allow us to dynamically generate the exported pages - const response = await fetch('http://jsonplaceholder.typicode.com/posts?_page=1') + const response = await fetch('https://jsonplaceholder.typicode.com/posts?_page=1') const postList = await response.json() // tranform the list of posts into a map of pages with the pathname `/post/:id` diff --git a/examples/with-static-export/pages/index.js b/examples/with-static-export/pages/index.js index 96fd40d2..5f2af574 100644 --- a/examples/with-static-export/pages/index.js +++ b/examples/with-static-export/pages/index.js @@ -7,7 +7,7 @@ import Post from '../components/post' export default class extends Component { static async getInitialProps () { // fetch list of posts - const response = await fetch('http://jsonplaceholder.typicode.com/posts?_page=1') + const response = await fetch('https://jsonplaceholder.typicode.com/posts?_page=1') const postList = await response.json() return { postList } } diff --git a/examples/with-static-export/pages/post.js b/examples/with-static-export/pages/post.js index a5a8f9c3..fde37ba8 100644 --- a/examples/with-static-export/pages/post.js +++ b/examples/with-static-export/pages/post.js @@ -6,7 +6,7 @@ import fetch from 'isomorphic-fetch' export default class extends Component { static async getInitialProps ({ query }) { // fetch single post detail - const response = await fetch(`http://jsonplaceholder.typicode.com/posts/${query.id}`) + const response = await fetch(`https://jsonplaceholder.typicode.com/posts/${query.id}`) const post = await response.json() return { ...post } }