Skip to content

Commit

Permalink
Use https to prevent mixed content when served over https (vercel#2741)
Browse files Browse the repository at this point in the history
  • Loading branch information
brikou authored and arunoda committed Sep 1, 2017
1 parent a779d83 commit 32d9b75
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/with-static-export/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
2 changes: 1 addition & 1 deletion examples/with-static-export/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
}
Expand Down
2 changes: 1 addition & 1 deletion examples/with-static-export/pages/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
}
Expand Down

0 comments on commit 32d9b75

Please sign in to comment.