Skip to content

Commit 24ac398

Browse files
stefanovernamatjack1timothyisMatthew Sweeney
authored
Add DatoCMS + Next.js + Now guide (#1722)
* Add DatoCMS + Next.js + Now guide Fix margin for videos * Small rewordings * Tweak DatoCMS + Next.js guide * Change og:image to point directly to og-image.now.sh * Add a "Create a `Blog` model" chapter * Update videos * Merge @timothyis comments * Update pages/guides/deploying-next-datocms-with-zeit-now.mdx Co-Authored-By: Timothy <[email protected]> * Update pages/guides/deploying-next-datocms-with-zeit-now.mdx Co-Authored-By: Timothy <[email protected]> * Update pages/guides/deploying-next-datocms-with-zeit-now.mdx Co-Authored-By: Timothy <[email protected]> * Update pages/guides/deploying-next-datocms-with-zeit-now.mdx Co-Authored-By: Timothy <[email protected]> * Update pages/guides/deploying-next-datocms-with-zeit-now.mdx Co-Authored-By: Timothy <[email protected]> * Cut the Preview Mode index.js example * Condense the article * Update pages/guides/deploying-next-datocms-with-zeit-now.mdx Co-Authored-By: Timothy <[email protected]> * Update pages/guides/deploying-next-datocms-with-zeit-now.mdx Co-Authored-By: Timothy <[email protected]> * Update pages/guides/deploying-next-datocms-with-zeit-now.mdx Co-Authored-By: Timothy <[email protected]> * Update pages/guides/deploying-next-datocms-with-zeit-now.mdx Co-Authored-By: Timothy <[email protected]> * Update pages/guides/deploying-next-datocms-with-zeit-now.mdx Co-Authored-By: Timothy <[email protected]> * Update pages/guides/deploying-next-datocms-with-zeit-now.mdx Co-Authored-By: Timothy <[email protected]> * Update pages/guides/deploying-next-datocms-with-zeit-now.mdx Co-Authored-By: Timothy <[email protected]> * Update pages/guides/deploying-next-datocms-with-zeit-now.mdx Co-Authored-By: Timothy <[email protected]> * Rename ZEIT -> Vercel * Publication date Co-authored-by: Stefano Verna <[email protected]> Co-authored-by: Matteo Giaccone <[email protected]> Co-authored-by: Timothy <[email protected]> Co-authored-by: Matthew Sweeney <[email protected]>
1 parent 208eaf2 commit 24ac398

File tree

7 files changed

+404
-1
lines changed

7 files changed

+404
-1
lines changed

components/media/video.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ class Video extends Component {
385385
figure.oversize {
386386
width: ${width}px;
387387
margin: ${margin}px 0 ${margin}px
388-
calc(((${width}px - 650px) / 2) * -1);
388+
calc(((${width}px - 768px) / 2) * -1);
389389
}
390390
}
391391
`}</style>

lib/data/guides.json

+13
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
11
[
2+
{
3+
"title": "Create a Next.js App with DatoCMS and Deploy It with Vercel",
4+
"description": "Deploy your Next.js and DatoCMS app with Vercel in a serverless environment.",
5+
"published": "2020-04-30T07:47:12.000Z",
6+
"authors": ["stefanoverna"],
7+
"url": "/guides/deploying-next-datocms-with-vercel",
8+
"image": "https://og-image.now.sh/**Create%20and%20Deploy%20a%20Blog**%20with%20Next.js%20and%20DatoCMS.png?theme=light&md=1&fontSize=100px&images=https%3A%2F%2Fassets.vercel.com%2Fimage%2Fupload%2Ffront%2Fassets%2Fdesign%2Fvercel-triangle-black.svg&images=https%3A%2F%2Fwww.datocms.com%2Fimages%2Fbrand-assets%2Fsvg%2Ficon-text%2Fcolor%2Fcolor_full_logo.svg",
9+
"editUrl": "pages/guides/deploying-next-datocms-with-vercel.mdx",
10+
"name": "Next.js + DatoCMS",
11+
"type": "site",
12+
"demo": "https://next-blog-datocms.now.sh/",
13+
"lastEdited": "2020-04-29T10:13:34.000Z"
14+
},
215
{
316
"title": "Deploy Ionic Angular with Vercel",
417
"description": "Create an Ionic Angular app and deploy it live with Vercel.",

0 commit comments

Comments
 (0)