TerbiumOS / webOS

TerbiumOS web is a web os packed with features, with new updates every so often
Apache License 2.0
157 stars 768 forks source link

Koyeb failure to deploy, vercel displaying code instead of webUI. #75

Open efwxx opened 3 months ago

efwxx commented 3 months ago

Issues named in title, koyeb error log:

======== Output: heroku/nodejs-corepack@2.6.2 ========
[Error: heroku/nodejs-corepack package.json error]
There was an error while attempting to parse this project's
package.json file. Please make sure it is present and properly
formatted.
Details: Could not parse package.json. Failed to parse version. at line 3 column 24
err:  heroku/nodejs-corepack@2.6.2 (1)
3 of 4 buildpacks participating
heroku/nodejs-engine       2.6.2
heroku/nodejs-pnpm-engine  2.6.2
heroku/nodejs-pnpm-install 2.6.2
[Heroku Node.js Engine Buildpack]
[Checking Node.js version]
[Error: Node.js engine package.json error]
Couldn't parse package.json: Could not parse package.json. Failed to parse version. at line 3 column 24
ERROR: failed to build: exit status 1
exit status 51
Layer cache not found

Vercel issue displayed in screenshot below: image

efwxx commented 3 months ago

nothing was modified in deployment for koyeb other than the location (changed from frankfurt -> washington), and nothing was modified for the vercel deployment. I attempted to change the port in the code for vercel:

const port = parseInt("8000");

any help would be appreciated <3

Notplayingallday383 commented 3 months ago

hi there, I dont know what could be causing the issue with koyeb, as for vercel could you send me the deployment settings you used to deploy itu?

efwxx commented 3 months ago

unsure if this is what you're asking for, but i'll provide it regardless. image

efwxx commented 3 months ago

I didn't really modify anything at deployment, I simply clicked on the deploy to Vercel button on the readme, cloned it to a private repository and had Vercel deploy everything on its own. image

88411 commented 1 month ago

Same happening to me

88411 commented 1 month ago

I found an alternative that actually works: Cloudflare

  1. First fork this repo
  2. Then go to Cloudflare.com and sign in
  3. Then on the left column select workers and pages
  4. After that click on create and then select pages (NOT workers)
  5. Select connect to git and connect your GitHub account.
  6. Then select the forked repo and click begin setup.

These next steps are very important:

DO NOT touch framework preset.

  1. For the build commands, type: "npm install" (The repo says to put "npm install && npm start" however this does not work)
  2. For output directory type: "static"
  3. 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

shonnyy commented 2 weeks ago

Set the output directory to static in your Project Settings.