Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
20 lines
525 B
Plaintext
20 lines
525 B
Plaintext
import { notFound } from 'next/navigation.js';
|
|
import { buildCollectionFolderView } from './buildView.js';
|
|
export const CollectionFolderView = async args => {
|
|
try {
|
|
const {
|
|
View
|
|
} = await buildCollectionFolderView(args);
|
|
return View;
|
|
} catch (error) {
|
|
if (error?.message === 'NEXT_REDIRECT') {
|
|
throw error;
|
|
}
|
|
if (error.message === 'not-found') {
|
|
notFound();
|
|
} else {
|
|
console.error(error); // eslint-disable-line no-console
|
|
}
|
|
}
|
|
};
|
|
//# sourceMappingURL=index.js.map |