Koyeb failure to deploy, vercel displaying code instead of webUI.
Issues named in title, koyeb error log:
======== Output: heroku/[email protected] ========
[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/[email protected] (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:
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
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?
unsure if this is what you're asking for, but i'll provide it regardless.
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.
Same happening to me
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
Set the output directory to static in your Project Settings.