mirror of
https://github.com/vercel/commerce.git
synced 2025-05-17 06:56: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)
|
||||
}
|
||||
|
||||
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,
|
||||
method: req.method,
|
||||
body,
|
||||
|
@ -73,7 +73,7 @@
|
||||
}
|
||||
|
||||
.imageContainer .productImage {
|
||||
@apply transform transition-transform duration-500 object-cover w-auto h-full;
|
||||
@apply transform transition-transform duration-500 object-cover;
|
||||
}
|
||||
|
||||
.root .wishlistButton {
|
||||
|
@ -81,8 +81,6 @@ const ProductView: FC<ProductViewProps> = ({ product, relatedProducts }) => {
|
||||
className="animated fadeIn"
|
||||
imgProps={{
|
||||
alt: p.name,
|
||||
width: 300,
|
||||
height: 300,
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user