We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d99de6 commit 8a4fc35Copy full SHA for 8a4fc35
app/share/[...postSlug]/page.tsx
@@ -27,7 +27,7 @@ export default async function PostPage({ params }: PostProps) {
27
const slug = params?.postSlug?.join("/");
28
const post = posts.find((post: Post) => post.extractedSlug === slug);
29
30
- if (!post || !post.published) {
+ if (!post || (!post.published && !post.publishedUnlisted)) {
31
notFound();
32
}
33
velite.config.ts
@@ -67,6 +67,7 @@ const posts = defineCollection({
67
description: s.string().max(200).optional(),
68
date: s.isodate(),
69
published: s.boolean().default(true),
70
+ publishedUnlisted: s.boolean().default(false),
71
featured: s.boolean().default(false),
72
tags: s.array(s.string()).default([]),
73
body: s.mdx(),
0 commit comments