Giter Site home page Giter Site logo

Comments (3)

andresjz avatar andresjz commented on May 21, 2024 1

Just to help someone else in the future:
The support that next.js + vercel provide it's wider than if you plan to hosting your site outside check details: https://nextjs.org/docs/deployment

Now the issues:

  1. next/image : dependency is used by "react-static-tweets": "^0.5.3", and "static-tweets": "^0.5.3", at this point I just removed them, in order to avoid that issue, however I would like to take a look of this and if that is allowed I can file a PR.
    Reference: https://nextjs.org/docs/messages/export-image-api

  2. fallback enabled in getStaticPaths: the problem is that once you build the static side, you cannot take advantage of next.js capabilites, check this link: https://nextjs.org/docs/messages/ssg-fallback-true-export

Then you need to disable fallback

fallback: false 

from nextjs-notion-starter-kit.

transitive-bullshit avatar transitive-bullshit commented on May 21, 2024

Hey Anthony 👋

This is really more of a question for Next.js discussions, but I'll try to answer here.

You can remove this line to solve your issue: https://github.com/transitive-bullshit/nextjs-notion-starter-kit/blob/main/pages/%5BpageId%5D.tsx#L47

What this is doing is telling Next.js to allow for any unknown Notion pages to be resolved in addition to the pages that are known when initially deploying your site. But this is really optional. It just means that if you add new pages in Notion, they won't resolve on your site until you redeploy, which is what's necessary if you're using next export.

from nextjs-notion-starter-kit.

SantoshSrinivas79 avatar SantoshSrinivas79 commented on May 21, 2024

Hi @zhijian-pro

I am getting the below error for export. Any suggestion if you have been able to get the export to work?

Screenshot 2021-09-28 at 2 09 21 PM

Thank you!

from nextjs-notion-starter-kit.

Related Issues (20)

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.