Skip to content

Commit

Permalink
nosto product
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddharth Sahay committed Jun 17, 2024
1 parent 18599eb commit 75fcee1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/entry.server.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export default async function handleRequest(

responseHeaders.set('Content-Type', 'text/html');
responseHeaders.set('Content-Security-Policy', header);
responseHeaders.set('Access-Control-Allow-Origin', '22e5233b4cfb.ngrok.app');

return new Response(body, {
headers: responseHeaders,
Expand Down
2 changes: 1 addition & 1 deletion app/routes/($locale)._index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default function Homepage() {
</div>

<NostoPlacement id="frontpage-nosto-1"/>
<NostoPlacement id="frontpage-nosto-2"/>
<NostoPlacement id="frontpage-nosto-3"/>
<NostoHome/>
<FeaturedCollection collection={data.featuredCollection}/>
<RecommendedProducts products={data.recommendedProducts}/>
Expand Down
3 changes: 3 additions & 0 deletions app/routes/($locale).products.$handle.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
CartForm,
} from '@shopify/hydrogen';
import {getVariantUrl} from '~/lib/variants';
import {NostoProduct, NostoPlacement} from "@nosto/shopify-hydrogen";

/**
* @type {MetaFunction<typeof loader>}
Expand Down Expand Up @@ -101,6 +102,8 @@ export default function Product() {
product={product}
variants={variants}
/>
<NostoPlacement id="productpage-nosto-3"/>
<NostoProduct />
</div>
);
}
Expand Down

0 comments on commit 75fcee1

Please sign in to comment.