Giter Club home page Giter Club logo

notion-blog's Issues

Vercel dose not update new blog

When I changed the blog, after I reloaded the web page (Vercel host) but blog did not change.
Localhost no problem.
Can you help me solve this issue?

display only published articles in the related posts

hello, i really appreciate your great work

i have a question though
constant relatedPosts is the intended implementation?
see: src/app/blog/[slug]/page.tsx: 38

  const relatedPosts: Post[] = allPosts.filter(
    (p) =>
      p.slug !== slug && p.categories.some((v) => post.categories.includes(v))
  );

is the following a better way to display only published articles in the related posts?

  const relatedPosts: Post[] = allPosts.filter(
    (p) =>
      p.slug !== slug &&
      p.published &&
      p.categories.some((v) => post.categories.includes(v))
  );

Error: Command "npm run build" exited with 1

TypeError: Cannot read properties of undefined (reading '}\N')

00:33:45.931 | at /vercel/path0/.next/server/chunks/760.js:121:82
00:33:45.931 | at Array.forEach ()
00:33:45.931 | at getAllPostsFromNotion (/vercel/path0/.next/server/chunks/760.js:120:24)
00:33:45.931 | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
00:33:45.931 | at async Object.generateStaticParams (/vercel/path0/.next/server/app/blog/[slug]/page.js:821:22)
00:33:45.931 | at async buildParams (/vercel/path0/node_modules/next/dist/build/utils.js:916:36)
00:33:45.931 | at async /vercel/path0/node_modules/next/dist/build/utils.js:933:33
00:33:45.931 | at async /vercel/path0/node_modules/next/dist/build/utils.js:1069:117
00:33:45.931 | at async Span.traceAsyncFn (/vercel/path0/node_modules/next/dist/trace/trace.js:103:20)
00:33:45.932 | ย 
00:33:45.932 | > Build error occurred
00:33:45.934 | Error: Failed to collect page data for /blog/[slug]
00:33:45.934 | at /vercel/path0/node_modules/next/dist/build/utils.js:1158:15
00:33:45.934 | at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
00:33:45.934 | type: 'Error'
00:33:45.934 | }
00:33:45.993 | Error: Command "npm run build" exited with 1

License

Hi, this is a great work.

I have a question though. What is the license of the code?

Can we create a derivatives blog from this?

opps

when I navigate between routes and go to /blog route then:

Screenshot 2023-06-01 123905
why?

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.