Comments (10)
@okash1n 情報ありがとうございます。引き続き調査進めます。
from astro-notion-blog.
#72 で修正したので同じ症状の方取り込んで試していただけますと幸いです。
from astro-notion-blog.
原因
0.3.0でNOTION_API_SECRETなどの環境変数の読み込みを process.env
経由に変更したが、.env
に書かれた環境変数は import.meta.env
経由でしか読み込めなかった。
https://docs.astro.build/ja/guides/environment-variables/
自身は .env
を使っていなかったため最初再現しなかった。
from astro-notion-blog.
ご報告ありがとうございます!よかったです!
from astro-notion-blog.
デバッグ
- node_modules/@notionhq/client/build/src/Client.js に下記を追加
L339
try {
+ console.log(url.toString())
const response = ...
yarn dev
して /blog を開くyarn dev
したターミナルに出力されたURLが正しいかどうか確認
URLは https://api.notion.com/v1/databases/c92f540ccb694c83aed7f890c27fcd5d/query
のようになっているはず。
from astro-notion-blog.
先程初めて使わせていただきました。 .evn
には NOTION_API_SECRET
および DATABASE_ID
を記載しましたが、Invalid request URL になります。
なお、Cloudflare側では問題なく表示されました。
環境はWin11、WSLです。
Cloudflareとローカルの差分は
Cloudflare: NODE_VERSION v16.13.0
ローカル: NODE_VERSION v19.2.0
だったのでそれかもしれません。ローカルのnodeのバージョン変えてリトライしてみようかと思います
from astro-notion-blog.
DATABASE_IDが入るところが空になっていることがわかった。
from astro-notion-blog.
.env
を使用したところ再現した。
.env
の内容が yarn dev
で反映されてないのかもしれない。
from astro-notion-blog.
#72 で修正
from astro-notion-blog.
取り込んで問題なく表示されました!
from astro-notion-blog.
Related Issues (20)
- コピーボタンの文字列を元に戻す HOT 3
- VSCode + Astro公式拡張 でエラーが発生 HOT 1
- Instructions missing HOT 1
- List type がNotionで指定したのと違う HOT 1
- 記事のタイトルが途中で途切れる HOT 7
- Exif削除によって記事の画像の向きが変わる HOT 3
- コールアウトの絵文字(アイコン)を削除するとエラーが発生する HOT 3
- Web Bookmark が文字化けする HOT 10
- 小さい画像の下に長いキャプションを書くと、画像が左に寄っていく HOT 2
- アップロードした画像に表示されないものがある HOT 8
- comment機能 HOT 3
- I got a update error afer I modified a file. HOT 2
- wiki に記載の方法で、うまく favicon が設定できない。 HOT 1
- Notion Iconに対応したい HOT 4
- インラインコード末尾の半角スペース HOT 1
- public/notion のコピーでエラー HOT 1
- サブディレクトリが存在する環境で fslightbox.js のパスが合わない HOT 2
- Gyazoなど外部サービスにホストしている画像に対してfslightboxがInvalid sourceになる
- Ver.0.4 ToDo
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from astro-notion-blog.