upgrade blitz@0.40.0-canary.5
This commit is contained in:
parent
45ca5cae86
commit
9248e5fbbe
@ -2,7 +2,7 @@ import { BlitzPage, GetStaticPaths, GetStaticProps, Head, useRouter } from "blit
|
|||||||
import ErrorPage from "next/error";
|
import ErrorPage from "next/error";
|
||||||
|
|
||||||
import type { Post } from "integrations/datocms";
|
import type { Post } from "integrations/datocms";
|
||||||
import { getAllPostsWithSlug, getPostAndMorePosts } from "integrations/datocms";
|
import { getAllPostsWithSlug, getPostAndMorePosts, markdownToHtml } from "integrations/datocms";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
post: Post;
|
post: Post;
|
||||||
@ -63,7 +63,7 @@ export const getStaticProps: GetStaticProps = async ({ params, preview = false }
|
|||||||
}
|
}
|
||||||
|
|
||||||
const data = await getPostAndMorePosts(params.slug, preview);
|
const data = await getPostAndMorePosts(params.slug, preview);
|
||||||
const content = /*await markdownToHtml(data.post.content || "");*/ "";
|
const content = await markdownToHtml(data.post.content || "");
|
||||||
|
|
||||||
return {
|
return {
|
||||||
props: {
|
props: {
|
||||||
|
6
blitz-env.d.ts
vendored
Normal file
6
blitz-env.d.ts
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
/// <reference types="next" />
|
||||||
|
/// <reference types="next/types/global" />
|
||||||
|
/// <reference types="next/image-types/global" />
|
||||||
|
|
||||||
|
// NOTE: This file should not be edited
|
||||||
|
// see https://nextjs.org/docs/basic-features/typescript for more information.
|
1518
package-lock.json
generated
1518
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -12,7 +12,7 @@
|
|||||||
"prepare": "husky install"
|
"prepare": "husky install"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "15"
|
"node": ">=14"
|
||||||
},
|
},
|
||||||
"prisma": {
|
"prisma": {
|
||||||
"schema": "db/schema.prisma"
|
"schema": "db/schema.prisma"
|
||||||
@ -53,7 +53,7 @@
|
|||||||
"@tailwindcss/typography": "0.4.1",
|
"@tailwindcss/typography": "0.4.1",
|
||||||
"@twilio/voice-sdk": "2.0.1",
|
"@twilio/voice-sdk": "2.0.1",
|
||||||
"awesome-phonenumber": "2.57.0",
|
"awesome-phonenumber": "2.57.0",
|
||||||
"blitz": "0.38.6",
|
"blitz": "0.40.0-canary.5",
|
||||||
"clsx": "1.1.1",
|
"clsx": "1.1.1",
|
||||||
"got": "11.8.2",
|
"got": "11.8.2",
|
||||||
"jotai": "1.3.0",
|
"jotai": "1.3.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user