Skip to content

Scheduling infrastructure for absolutely everyone.

Fix hardcoded URL

Bailey Pumfleet580d2fefb042
diff --git a/pages/[user]/book.tsx b/pages/[user]/book.tsx
index e3baf4defa0..8fbb99ef7cb 100644
--- a/pages/[user]/book.tsx
+++ b/pages/[user]/book.tsx
@@ -11,7 +11,7 @@ export default function Book(props) {
const bookingHandler = event => {
event.preventDefault()
const res = fetch(
- 'http://localhost:3000/api/book/' + user,
+ '/api/book/' + user,
{
body: JSON.stringify({
start: dayjs(date).format(),