Coder Social home page Coder Social logo

Comments (7)

otoyo avatar otoyo commented on July 26, 2024 1

NOTION_API_SECRET is missing from env とあるように NOTION_API_SECRET が設定されていないことが原因です(入力間違いではなく)。
Vercel に行き該当の easy-notion-blog プロジェクトの Settings > Environment Variables で NOTION_API_SECRET が Production および Preview 環境に対して設定されていることをご確認ください。
スクリーンショット 2022-02-18 8 21 34

from easy-notion-blog.

herohoro avatar herohoro commented on July 26, 2024 1

無事解決おめでとうございます\(^o^)/\(^o^)/
t0ns0ku426さんとアルパカ先生のやりとりがすごく勉強になるのでとっても有意義なIssueだなと思いました。
ありがとうございます⭐(´ω`)

from easy-notion-blog.

otoyo avatar otoyo commented on July 26, 2024 1

解決して良かったです。ブログ楽しんでください。

from easy-notion-blog.

herohoro avatar herohoro commented on July 26, 2024

!! ちょうど私も昨日同じエラーと格闘してクリアしたところでした(なんという偶然!!)

Next.jsのバージョンアップさせるためのリリース
https://github.com/otoyo/easy-notion-blog/releases/tag/v0.5.0
により、同期後yarnがエラーになったんですよね??

私のリポジトリにその時行ったコマンドのメモと参照記事リンクも記載しています。
herohoro@fa74269#commitcomment-66819784

reactとnext.jsを最新版にしたのちに再度Vercelの機嫌を伺ってみてください!

from easy-notion-blog.

t0ns0ku426 avatar t0ns0ku426 commented on July 26, 2024

@herohoroさん @otoyoさん

どうも「t0ns0ku426」です。この度はこちらのIssueでのお返事を有り難うございます。

昨日、Vercel にあります自身の該当のblog内の Environment Variables を確認いたしましたところ、

スクリーンショット (157)

NAMENOTION_API_SECRETVALUEDATABASE_IDと、ひとつに入れてしまっていた事で

NOTION_API_SECRET is missing from envというエラーログが出てしまう状態になっておりました。

なので、以下のように

スクリーンショット (156)

DATABASE_IDNOTION_API_SECRETEnvironment Variables

それぞれ別に作成することで、無事にこの問題は解決いたしました。

しかし、また別の問題が発生いたしまして、

(以下スクショ画像掲載)

スクリーンショット (159)

(※同様に//blog/before/2021-11-03/blog/tag/Diary/404/500/blog/my-first-post

上記スクショ画像にあります Error occurred prerendering page のエラーが発生いたしました。)

スクリーンショット (167)

最終的なError: Command "yarn run build" exited with 1という表示は変わらなかったのですが、

それ以外での自身の対応としてはどのように作業をしたら宜しいでしょうか。

是非ともアドバイスの方、宜しくお願いいたします。

from easy-notion-blog.

otoyo avatar otoyo commented on July 26, 2024

#42 で報告された不具合の可能性があります。
リポジトリを最新の状態に更新していただくと修正が入るため、その後再度お試しいただけますでしょうか。

from easy-notion-blog.

t0ns0ku426 avatar t0ns0ku426 commented on July 26, 2024

早急のお返事をありがとうございます。

先程、改めてVercelでデプロイしてみたところ

スクリーンショット (169)

無事にエラーログも出ないままデプロイが完了し、自身のNotion Blogをちゃんと表示することが出来ましたー。

この件についての問題解決までのアドバイスを、本当にありがとうございました。

from easy-notion-blog.

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.