Skip to content

Commit

Permalink
using netlify proxy for socket
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelcolvin committed Mar 3, 2018
1 parent 34c3a0e commit 0c611a4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion _includes/our-tutors.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ <h3 class="tutor-sign-up">Interested in becoming a tutor?</h3>
</section>
<script>
socket('{{ site.socket_key }}', {
router_mode: 'history'
router_mode: 'history',
api_root: 'https://dinotutors.com/socket-api'
});
</script>
5 changes: 4 additions & 1 deletion _redirects
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
/* / 200

/enquiry / 200
/*/enquiry /:splat 200
/*/enquiry /:splat 200

# socket proxy:
/socket-api/* https://socket.tutorcruncher.com/:splat 200

0 comments on commit 0c611a4

Please sign in to comment.