This repository contains the source code for the get.opentofu.org
distribution site. It is deployed on Cloudflare
Pages. The installation scripts are located in src/install-opentofu.sh
(POSIX) and src/install-opentofu.ps1
(Powershell). The Cloudflare function managing the MIME type assignment is located in
src/functions/index.ts
.
You can test the installation script manually, or you can use docker compose
to run the automated
tests:
cd tests/linux
./test-all.sh
cd tests\windows
& '.\test-all.ps1'
You can test the site locally using wrangler if you have NodeJS/NPM installed:
npm i
cd src
npx wrangler pages dev .