mirror of
https://github.com/vercel/commerce.git
synced 2025-05-15 05:56:59 +00:00
Tried some updates
This commit is contained in:
parent
810754ad1d
commit
ac9d8c4386
@ -17,8 +17,6 @@ export async function generateMetadata({
|
||||
}): Promise<Metadata> {
|
||||
const { slug, locale } = params;
|
||||
|
||||
console.log(slug, locale);
|
||||
|
||||
const { query = '', queryParams } = getQueryFromSlug(slug, locale);
|
||||
|
||||
const page = await clientFetch(query, queryParams);
|
||||
|
@ -40,7 +40,7 @@ export default async function Footer({ locale }: FooterProps) {
|
||||
{link._type == 'linkInternal' ? (
|
||||
<Link
|
||||
className="hover:underline"
|
||||
href={`/${link.reference.locale}/${link.reference.slug.current}`}
|
||||
href={`${link.reference.slug.current}`}
|
||||
>
|
||||
{link.title}
|
||||
</Link>
|
||||
|
@ -22,7 +22,7 @@ const BlurbSection = ({
|
||||
: desktopLayout === '3-column'
|
||||
? 'lg:grid-cols-3'
|
||||
: 'lg:grid-cols-4';
|
||||
console.log(imageFormat);
|
||||
|
||||
return (
|
||||
<div>
|
||||
{title ? (
|
||||
|
@ -15,7 +15,6 @@ interface Props {
|
||||
|
||||
const ProductCard: FC<Props> = ({ product, className, variant = 'default' }) => {
|
||||
const rootClassName = cn('w-full group relative overflow-hidden', className);
|
||||
console.log(product);
|
||||
|
||||
return (
|
||||
<Link
|
||||
|
@ -21,8 +21,7 @@ const getQueryFromSlug = (slugArray: string[], locale: string) => {
|
||||
slug: `/${slugArray.join("/")}`,
|
||||
locale: locale
|
||||
};
|
||||
|
||||
console.log("Query Params:", queryParams)
|
||||
console.log(slugStart)
|
||||
|
||||
if (slugStart === `produkt` || slugStart === `product`) {
|
||||
docType = `product`
|
||||
|
Loading…
x
Reference in New Issue
Block a user