Skip to content

Commit fec2029

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

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
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: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
/* / 200
1+
# /* / 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)