notion-blog | js site using new SSG support with a Notion backed blog | Frontend Framework library

 by   ijjk TypeScript Version: Current License: MIT

kandi X-RAY | notion-blog Summary

kandi X-RAY | notion-blog Summary

notion-blog is a TypeScript library typically used in User Interface, Frontend Framework, React, Nodejs, Next.js applications. notion-blog has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

This is an example Next.js project that shows Next.js' upcoming SSG (static-site generation) support using Notion's private API for a backend. Note: This example uses the experimental SSG hooks only available in the Next.js canary branch! The APIs used within this example will change over time. Since it is using a private API and experimental features, use at your own risk as these things could change at any moment. Live Example hosted on Vercel:
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              notion-blog has a medium active ecosystem.
              It has 3199 star(s) with 418 fork(s). There are 26 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 18 open issues and 39 have been closed. On average issues are closed in 51 days. There are 1 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of notion-blog is current.

            kandi-Quality Quality

              notion-blog has 0 bugs and 0 code smells.

            kandi-Security Security

              notion-blog has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              notion-blog code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              notion-blog is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              notion-blog releases are not available. You will need to build from source code and install.
              Installation instructions are available. Examples and code snippets are not available.
              It has 623 lines of code, 0 functions and 55 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of notion-blog
            Get all kandi verified functions for this library.

            notion-blog Key Features

            No Key Features are available at this moment for notion-blog.

            notion-blog Examples and Code Snippets

            No Code Snippets are available at this moment for notion-blog.

            Community Discussions

            QUESTION

            Next.js SSR with API not building properly
            Asked 2022-Mar-13 at 13:18

            "Not building properly" meaning "not finishing building at all". I've set up a very basic blog project with dynamic SSR which fetches data from the Notion-API to generate static blog pages. Everything works fine when I'm running it in next dev - however when trying to build the project, it runs into an endless loop without any errors shown.

            One thought I had was the following:
            If I understand the sequence of everything correctly, Next.js already tries building the static sites during next build. The dynamic site generation relies on an API that I have also coded within the same project, which forwards requests to Notion in order to obfuscate secrets. Obviously no local API will be active during the build, which I am guessing is the error I'm running into?

            To illustrate - here's the code for the pages that are to be generated:

            ...

            ANSWER

            Answered 2022-Mar-13 at 13:18

            I solved this one by thinking hard about whether an API was actually necessary. Since I already have the Notion-keys accessible project-wide in process.env, there's no real need to build up an API. Moving the query-logic to helper-functions that I can simply call has solved about every problem I faced.

            Learning: Don't just build APIs for everything. It might just make your life harder.

            Source https://stackoverflow.com/questions/71432063

            QUESTION

            Firebase function not serving routes when deployed
            Asked 2022-Feb-25 at 23:23

            Some context to my problem: I'm wanting to write a firebase function including Express that sits in between a users' browser and the Notion API. I drafted up some code for minimal functionality which works with the local emulators firebase provides. I've tested the two routes locally, both are served properly and execute without error.

            When I try to deploy the function all goes well. However, upon calling the route it responds with a 403 error page. No other errors logged, just this "Error: Forbidden" disclaimer.

            Am I missing something really obvious here or using functions outside of their intended scope?

            ...

            ANSWER

            Answered 2022-Feb-25 at 23:23

            I managed to fix it!

            The 403 Error did originate from the cloud function itself. This answer explains it quite well - it's an issue of missing permissions when trying to call a function which is resolved by adding the Cloud Functions Invoker permission to the allUsers user of your cloud function.

            Source https://stackoverflow.com/questions/71256824

            QUESTION

            Display external cover Notion API with Next.js
            Asked 2022-Jan-26 at 23:25

            I'm creating my portfolio using Notion API, Next.js and Tailwind thanks to this wonderful work : https://github.com/samuelkraft/notion-blog-nextjs

            However, as you may know, images hosted on Notion has an expiration time. I tried to use but if I upload a cover on my Notion page from an external link, all my code breaks. I had a look on this documentation : https://developers.notion.com/changelog/page-icons-cover-images-new-block-types-and-improved-page-file-properties but I don't know how to mention it's an external link.

            Do you have any idea how I can solve this issue?

            Thanks a lot in advance

            ...

            ANSWER

            Answered 2022-Jan-26 at 23:25

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install notion-blog

            To view the steps to setup Notion to work with this example view the post at https://notion-blog.vercel.app/blog/my-first-post or follow the steps below.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/ijjk/notion-blog.git

          • CLI

            gh repo clone ijjk/notion-blog

          • sshUrl

            git@github.com:ijjk/notion-blog.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link