Open LeeJunHyun opened 3 years ago
@LeeJunHyun Any update on this? You managed to make it work? Even I'm looking for the same
@Harshmakadia check out https://www.npmjs.com/package/react-notion-x and https://github.com/transitive-bullshit/nextjs-notion-starter-kit which should make what you're looking for a lot easier.
@LeeJunHyun Any update on this? You managed to make it work? Even I'm looking for the same
npm i @cloudflare/wrangler -g
or sudo npm i @cloudflare/wrangler -g
wrangler config
. This is will ask you the Cloudflare API Token. Come to your Cloudflare API Token Page (https://dash.cloudflare.com/profile/api-tokens) and create token (only with Workers). Copy it and paste to your terminal, Enter. wrangler.example.toml
and rename to wrangler.toml
wrangler.toml
, you need to add value for account_id
and zone_id
(2 things you can find in your domain on Cloudflare). Add value for route
(subdomain you want to use, example: sub.sample.com). And also remove the line workers_dev = true
because this line will send you an error like this [you must set workers_dev = true OR provide a zone_id and route/routes.]wrangler.toml
, open your terminal in the same folder, run wrangler publish
. And it will run to push your files to Cloudflare Workers.account_id
and zone_id
. Create A with value is sub (subdomain you use) and point to 1.1.1.1 with Cloudflare Gates (Orange Cloud).Thanks for sharing this nice work and react-notion as well.
I'm trying to host it using Cloudflare, but it is a little bit difficult for me because I don't have an experience with it.
Could you please give me some information about how to host it?
CC you as well. Thank you.
Thanks for sharing this nice work and react-notion as well.
I'm trying to host it using Cloudflare, but it is a little bit difficult for me because I don't have an experience with it.
Could you please give me some information about how to host it?