mirror of
https://github.com/vercel/commerce.git
synced 2025-05-17 15:06:59 +00:00
Fix image height & missing query string
This commit is contained in:
parent
e66cd12f4c
commit
de2e92cf3e
@ -44,7 +44,10 @@ export const transformRequest = (req: NextApiRequest, path: string) => {
|
|||||||
body = JSON.stringify(req.body)
|
body = JSON.stringify(req.body)
|
||||||
}
|
}
|
||||||
|
|
||||||
return new NextRequest(`https://${req.headers.host}/api/commerce/${path}`, {
|
// Get the url path & query string
|
||||||
|
const url = new URL(req.url || '/', `https://${req.headers.host}`)
|
||||||
|
|
||||||
|
return new NextRequest(url, {
|
||||||
headers,
|
headers,
|
||||||
method: req.method,
|
method: req.method,
|
||||||
body,
|
body,
|
||||||
|
@ -73,7 +73,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.imageContainer .productImage {
|
.imageContainer .productImage {
|
||||||
@apply transform transition-transform duration-500 object-cover w-auto h-full;
|
@apply transform transition-transform duration-500 object-cover;
|
||||||
}
|
}
|
||||||
|
|
||||||
.root .wishlistButton {
|
.root .wishlistButton {
|
||||||
|
@ -81,8 +81,6 @@ const ProductView: FC<ProductViewProps> = ({ product, relatedProducts }) => {
|
|||||||
className="animated fadeIn"
|
className="animated fadeIn"
|
||||||
imgProps={{
|
imgProps={{
|
||||||
alt: p.name,
|
alt: p.name,
|
||||||
width: 300,
|
|
||||||
height: 300,
|
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user