Code Monkey home page Code Monkey logo

nextjs-contentful-blog-starter's Issues

How to render video assets (not embeds)

Thank you for this great project, I learned a lot trying to RichTextPageContent to work! I could not however get a video asset to render in the page - by that I mean a video that is uploaded to Contentful as an Asset, and added as an Entry to a post. It looks like the component assumes that every embedded asset is to be rendered as an image tag, could that be the reason?

[BLOCKS.EMBEDDED_ASSET]: (node, next) => {

Did I miss something? The error is that the code is treating the video as an image.

A question to your ContentfulApi

First off, nice pair coding with Jason on Youtube! Love the content...

I would like to know in case you have a lot of different api calls to CF, do you still put them into that one file? Or would you split them into different files and scope them a little bit more? I like the way you did it and I was doing it almost the same in a project I am a part of but my Lead Dev was asking me if we scale, if this would be good to put all those calls into a single file?! I think it depends... centralising all API Calls to CF in a single file kinda makes sense! What do you think?

preview token visibility

may I ask why you have put the preview token to the client side (NEXT_PUBLIC_)?

I am just curious because I read that those credentials should not be exposed to the client side due to everyone can access this. But I use react query and the graphql client to get my data from contentful and in order to react query to work I need to make them public. I think the refetching with react query happens on the client side?! But maybe I didnt fully understand it...

What do you think?

Add author content model to content-model.js

The required Author content model is missing from the migration script. Here's what I see being missing:

  • Add to migration script
  • Update blog model definition to include referenced author model

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.