chore: show out of stock message

This commit is contained in:
Björn Meyer
2023-10-27 15:42:13 +02:00
parent 267ed5d103
commit d67e8f57c1
6 changed files with 272 additions and 258 deletions

View File

@@ -20,7 +20,7 @@ export async function generateMetadata({
}): Promise<Metadata> {
// see https://github.com/facebook/react/issues/25994
const collectionName = decodeURIComponent(transformHandle(params?.collection ?? ''));
if (collectionName === 'react_devtools_backend_compact.js.map') {
if (collectionName.includes('.js.map')) {
return {};
}
@@ -47,7 +47,7 @@ export default async function CategoryPage({
// see https://github.com/facebook/react/issues/25994
const collectionName = decodeURIComponent(transformHandle(params?.collection ?? ''));
if (collectionName === 'react_devtools_backend_compact.js.map') {
if (collectionName.includes('.js.map')) {
return null;
}