@plasmicapp/nextjs-app-router 1.0.3 → 1.0.4
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/README.md +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -86,7 +86,7 @@ async function withExtractPlasmicQueryData(
|
|
|
86
86
|
// query data.
|
|
87
87
|
const prepassHost =
|
|
88
88
|
process.env.PLASMIC_PREPASS_HOST ??
|
|
89
|
-
process.env.VERCEL_URL ??
|
|
89
|
+
(process.env.VERCEL_URL && `https://${process.env.VERCEL_URL}`) ??
|
|
90
90
|
`http://localhost:${process.env.PORT ?? 3000}`;
|
|
91
91
|
|
|
92
92
|
// Build a copy of the search params
|
|
@@ -102,7 +102,7 @@ async function withExtractPlasmicQueryData(
|
|
|
102
102
|
|
|
103
103
|
// Fetch the data from the endpoint using the new search params
|
|
104
104
|
const prefetchedQueryData = await fetchExtractedQueryData(
|
|
105
|
-
`${prepassHost}
|
|
105
|
+
`${prepassHost}${pathname}?${newSearchParams.toString()}`
|
|
106
106
|
);
|
|
107
107
|
|
|
108
108
|
// Provide the query data to <PlasmicClientRootProvider>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plasmicapp/nextjs-app-router",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"types": "./dist/index.d.ts",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.esm.js",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"react": "^18.2.0",
|
|
71
71
|
"typescript": "^5.2.2"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "95af4e83a6fca43f3822834f66bb6de03492213b"
|
|
74
74
|
}
|