how to npm start this using a static IP address
Hi I cannot work out how this can be started to anything other than localhost. Is there a simple solution to this.
Many thanks for your help.
If your static hosting you don’t need to run npm start because it’s not possible however set the output directory to static and just change the bare server in uv.config.js and dynamic.config.js to something else so it doesn’t break
what do you mean something else
when using an IP of your machine find your IP (i.e. 192.168.1.1) and put the port that it's running on :6969 (i.e. 192.168.1.1:6969
I found an alternative that actually works: Cloudflare
- First fork this repo
- Then go to Cloudflare.com and sign in
- Then on the left column select workers and pages
- After that click on create and then select pages (NOT workers)
- Select connect to git and connect your GitHub account.
- Then select the forked repo and click begin setup.
These next steps are very important:
DO NOT touch framework preset.
- For the build commands, type: "npm install" (The repo says to put "npm install && npm start" however this does not work)
- For output directory type: "static"
- Then click save and deploy and cross your fingers that everything goes well
After it builds it will provide you with a link and your good to go.
Also if for some reason you can't figure it out here is my link I got from following those exact steps "https://webos2-d9d.pages.dev/" By the time you are reading this it might be blocked tho idk
GL
You can also use Vercel.
After you deploy it click on settings and change the output directory and build command to what is in my tutorial above for cloudflare.