Skip to content

Commit 065626b

Browse files
committed
removed local hosts values
1 parent 21a8fdc commit 065626b

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,6 @@ your stripe webhook secret string
5151

5252
`usernameENV`
5353
the username to login to admin panel
54+
5455
`passwordENV`
5556
the password to login to admin panel

src/app/admin/auth/property/property_booking.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,9 @@ export function AdminBlockDates({ propertyId }: { propertyId: number }) {
9696
let ws: WebSocket | undefined;
9797

9898
const connectWebSocket = () => {
99-
ws = new WebSocket(`ws://localhost:8000/?propertyId=${propertyId}`);
99+
ws = new WebSocket(
100+
`${process.env.NEXT_PUBLIC_WEB_SOCKET_SERVER}/?propertyId=${propertyId}`
101+
);
100102

101103
ws.onopen = () => {
102104
console.log("WebSocket connected.");

src/components/property/property_booking.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,9 @@ export function PropertyBooking({
137137
const connectWebSocket = () => {
138138
const propertyId = isLaVillaPerlata ? 1 : 2;
139139

140-
ws = new WebSocket(`ws://localhost:8000/?propertyId=${propertyId}`);
140+
ws = new WebSocket(
141+
`${process.env.NEXT_PUBLIC_WEB_SOCKET_SERVER}/?propertyId=${propertyId}`
142+
);
141143

142144
ws.onopen = () => {
143145
console.log("WebSocket connected.");

src/components/stripe/checkout_form.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ function PaymentForm({
130130
elements,
131131
confirmParams: {
132132
receipt_email: bookingData.bookerEmail, // Optional: Email for payment receipt ?
133-
return_url: `http://localhost:3000/payment/success`,
133+
return_url: `${process.env.NEXT_PUBLIC_BASE_URL}/payment/success`,
134134
},
135135
});
136136

0 commit comments

Comments
 (0)