Skip to content

Latest commit

 

History

History
19 lines (10 loc) · 1.41 KB

File metadata and controls

19 lines (10 loc) · 1.41 KB

Static Hosting Terbium

For this tutorial, Cloudflare pages will be used however the instructions will be similar on other static hosts.

Step 1.

Fork this repository and connect your github account to the static host of your choise.

NOTE: On Cloudflare pages, Terbium is automatically configured to use Node 20. If your using a different host check with them that you are using Node 20 or later as Terbium WILL NOT build on older versions.

Step 2.

Under the build section command put: npm i; npm run build-static LEAVE THE START COMMAND BLANK IF IT EXISTS

Then under the output directory put the folder: dist and click Deploy

Step 3. (Optional)

Now that the sites deployed, you have probably noticed that the Default wisp server wont be running since your static hosting. If you wish to change this navigate to sys/init/index.ts scroll down to Line 41 and replace the line: ${location.protocol.replace("http", "ws")}//${location.hostname}:${location.port}/wisp/ with the wisp server of your choice as a string. If you dont want to do this you dont have to as you can change it in the OOBE.