Migrate to Cloudflare Pages
This commit is contained in:
parent
e16d9628fe
commit
a7f5585709
2 changed files with 1282 additions and 9 deletions
20
README.org
20
README.org
|
@ -2,15 +2,17 @@
|
||||||
|
|
||||||
** Setup
|
** Setup
|
||||||
|
|
||||||
#+begin_src sh
|
Uses [[https://developers.cloudflare.com/pages/get-started/direct-upload/][Cloudflare Pages direct upload]].
|
||||||
npm install netlify-cli -g
|
|
||||||
netlify login # login to Netlify
|
|
||||||
netlify link # link the directory to the site
|
|
||||||
#+end_src
|
|
||||||
|
|
||||||
** Deploy
|
|
||||||
|
|
||||||
#+begin_src sh
|
#+begin_src sh
|
||||||
# deploy, omit "--prod" if you want to preview
|
npm install
|
||||||
netlify deploy --dir=_site --prod
|
npx wrangler login
|
||||||
|
npx wrangler pages project create
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
** Build and deploy
|
||||||
|
|
||||||
|
#+begin_src sh
|
||||||
|
cabal run site build
|
||||||
|
npx wrangler pages project deploy _site
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
1271
package-lock.json
generated
Normal file
1271
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue