eddev 0.2.57 → 0.2.59
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
|
@@ -27,7 +27,10 @@ export default class Document extends NextDocument {
|
|
|
27
27
|
) : null}
|
|
28
28
|
{settings.tracking?.analyticsID ? (
|
|
29
29
|
<>
|
|
30
|
-
<script
|
|
30
|
+
<script
|
|
31
|
+
async
|
|
32
|
+
src={`https://www.googletagmanager.com/gtag/js?id=${settings.tracking?.analyticsID}`}
|
|
33
|
+
></script>
|
|
31
34
|
<script
|
|
32
35
|
dangerouslySetInnerHTML={{
|
|
33
36
|
__html: `
|
|
@@ -26,7 +26,10 @@ export default async function (req: NextApiRequest, res: NextApiResponse) {
|
|
|
26
26
|
})
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
let finalPath = proxyPath.path.replace("*", (req.query.method as string[]).slice(1).join("/"))
|
|
30
|
+
if (typeof req.query.params === "string") {
|
|
31
|
+
finalPath += "?params=" + encodeURIComponent(req.query.params)
|
|
32
|
+
}
|
|
30
33
|
|
|
31
34
|
const response = await fetchWP(
|
|
32
35
|
process.env.SITE_URL + finalPath,
|