File tree 4 files changed +8
-3
lines changed
4 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -51,5 +51,6 @@ your stripe webhook secret string
51
51
52
52
` usernameENV `
53
53
the username to login to admin panel
54
+
54
55
` passwordENV `
55
56
the password to login to admin panel
Original file line number Diff line number Diff line change @@ -96,7 +96,9 @@ export function AdminBlockDates({ propertyId }: { propertyId: number }) {
96
96
let ws : WebSocket | undefined ;
97
97
98
98
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
+ ) ;
100
102
101
103
ws . onopen = ( ) => {
102
104
console . log ( "WebSocket connected." ) ;
Original file line number Diff line number Diff line change @@ -137,7 +137,9 @@ export function PropertyBooking({
137
137
const connectWebSocket = ( ) => {
138
138
const propertyId = isLaVillaPerlata ? 1 : 2 ;
139
139
140
- ws = new WebSocket ( `ws://localhost:8000/?propertyId=${ propertyId } ` ) ;
140
+ ws = new WebSocket (
141
+ `${ process . env . NEXT_PUBLIC_WEB_SOCKET_SERVER } /?propertyId=${ propertyId } `
142
+ ) ;
141
143
142
144
ws . onopen = ( ) => {
143
145
console . log ( "WebSocket connected." ) ;
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ function PaymentForm({
130
130
elements,
131
131
confirmParams : {
132
132
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` ,
134
134
} ,
135
135
} ) ;
136
136
You can’t perform that action at this time.
0 commit comments