@wix/astro 1.0.12 → 1.0.15
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/build/index.js +7 -3
- package/build/index.js.map +1 -1
- package/build-browser-runtime/before-hydration.d.ts +3 -1
- package/build-browser-runtime/before-hydration.js +3 -3
- package/build-browser-runtime/{chunk-4AS3AXFB.js → chunk-HJBVRKIZ.js} +3 -4
- package/build-browser-runtime/page.d.ts +3 -1
- package/build-browser-runtime/page.js +3 -3
- package/package.json +2 -2
- package/src/context/before-hydration.ts +2 -2
- package/src/context/page.ts +2 -2
- package/src/context/utils.ts +2 -3
- package/src/index.ts +7 -3
package/build/index.js
CHANGED
|
@@ -18294,20 +18294,24 @@ var createIntegration = () => {
|
|
|
18294
18294
|
}) {
|
|
18295
18295
|
const codegenDirURL = createCodegenDir();
|
|
18296
18296
|
const codegenDir = fileURLToPath3(codegenDirURL);
|
|
18297
|
-
const rootDir = fileURLToPath3(config.
|
|
18297
|
+
const rootDir = fileURLToPath3(config.root);
|
|
18298
18298
|
model ??= await createProjectModel(logger);
|
|
18299
18299
|
injectScript(
|
|
18300
18300
|
"before-hydration",
|
|
18301
18301
|
defaultOutdent`
|
|
18302
|
+
import { WIX_CLIENT_ID } from 'astro:env/client';
|
|
18302
18303
|
import { setup } from '@wix/astro/context/before-hydration';
|
|
18303
|
-
|
|
18304
|
+
|
|
18305
|
+
setup({ clientId: WIX_CLIENT_ID });
|
|
18304
18306
|
`
|
|
18305
18307
|
);
|
|
18306
18308
|
injectScript(
|
|
18307
18309
|
"page",
|
|
18308
18310
|
defaultOutdent`
|
|
18311
|
+
import { WIX_CLIENT_ID } from 'astro:env/client';
|
|
18309
18312
|
import { setup } from '@wix/astro/context/page';
|
|
18310
|
-
|
|
18313
|
+
|
|
18314
|
+
setup({ clientId: WIX_CLIENT_ID });
|
|
18311
18315
|
`
|
|
18312
18316
|
);
|
|
18313
18317
|
addMiddleware({
|