astro-integration-pocketbase 2.1.10 → 2.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro-integration-pocketbase",
3
- "version": "2.1.10",
3
+ "version": "2.1.11",
4
4
  "description": "An Astro integration to support developers working with astro-loader-pocketbase.",
5
5
  "keywords": [
6
6
  "astro",
@@ -136,8 +136,8 @@ async function handleConnectEvent(
136
136
  }
137
137
 
138
138
  // Subscribe to the PocketBase realtime API
139
- const eventSourceUrl = new URL("api/realtime/subscribe", options.url).href;
140
- const result = await fetch(eventSourceUrl, {
139
+ const subscriptionUrl = new URL("api/realtime", options.url).href;
140
+ const result = await fetch(subscriptionUrl, {
141
141
  method: "POST",
142
142
  headers: {
143
143
  "Content-Type": "application/json",