Skip to content

Commit 0c611a4

Browse files
committed
using netlify proxy for socket
1 parent 34c3a0e commit 0c611a4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

_includes/our-tutors.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ <h3 class="tutor-sign-up">Interested in becoming a tutor?</h3>
4444
</section>
4545
<script>
4646
socket('{{ site.socket_key }}', {
47-
router_mode: 'history'
47+
router_mode: 'history',
48+
api_root: 'https://dinotutors.com/socket-api'
4849
});
4950
</script>

_redirects

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
/* / 200
22

33
/enquiry / 200
4-
/*/enquiry /:splat 200
4+
/*/enquiry /:splat 200
5+
6+
# socket proxy:
7+
/socket-api/* https://socket.tutorcruncher.com/:splat 200

0 commit comments

Comments
 (0)