Update to astro@2.0.0-beta.4
This commit is contained in:
@ -16,17 +16,17 @@
|
||||
"devDependencies": {
|
||||
"@astrojs/image": "^1.0.0-beta.2",
|
||||
"@astrojs/mdx": "^1.0.0-beta.2",
|
||||
"@astrojs/partytown": "^1.0.3-beta.0",
|
||||
"@astrojs/partytown": "^1.0.3-beta.1",
|
||||
"@astrojs/rss": "^2.0.0",
|
||||
"@astrojs/sitemap": "^1.0.0",
|
||||
"@astrojs/tailwind": "^3.0.0-beta.1",
|
||||
"@astrojs/tailwind": "^3.0.0-beta.2",
|
||||
"@astrolib/analytics": "^0.3.0",
|
||||
"@astrolib/seo": "^0.3.0",
|
||||
"@fontsource/inter": "^4.5.15",
|
||||
"@tailwindcss/typography": "^0.5.9",
|
||||
"@typescript-eslint/eslint-plugin": "^5.48.2",
|
||||
"@typescript-eslint/parser": "^5.48.2",
|
||||
"astro": "^2.0.0-beta.3",
|
||||
"astro": "^2.0.0-beta.4",
|
||||
"astro-compress": "1.1.28",
|
||||
"astro-icon": "^0.8.0",
|
||||
"eslint": "^8.32.0",
|
||||
|
@ -7,7 +7,6 @@ const posts = defineCollection({
|
||||
image: z.string().optional(),
|
||||
|
||||
canonical: z.string().url().optional(),
|
||||
permalink: z.string().optional(),
|
||||
|
||||
publishDate: z.date().or(z.string()).optional(),
|
||||
draft: z.boolean().optional(),
|
||||
@ -17,9 +16,6 @@ const posts = defineCollection({
|
||||
tags: z.array(z.string()).optional(),
|
||||
author: z.string().optional(),
|
||||
}),
|
||||
slug: ({ defaultSlug, data }) => {
|
||||
return data.permalink || defaultSlug;
|
||||
},
|
||||
});
|
||||
|
||||
export const collections = {
|
||||
|
Reference in New Issue
Block a user