#How can i deploy my angular static website application on github as a host
41 messages · Page 1 of 1 (latest)
I've done it using this package in the past. Worked great when I last tried it
https://github.com/angular-schule/angular-cli-ghpages
Make sure to follow the docs, eg https://github.com/angular-schule/angular-cli-ghpages#base-href
Also, I'd start with an updated Angular CLI app - not v13, clean repo and start from scratch
i did this process same process before and still
Also, there seems to be an error here
Use a clean repo, update your Angular CLI, create a new app, start from scratch. Make sure you pass in the base-href property if you want to run it on something.github.io/reponame
idk why its hard to deploy a static application, almost giving up on this
maybe try firebase
Try cloudflare pages
ok lemme see
The Angular CLI requires a minimum Node.js version of either v14.15, or v16.10.
Please update your Node.js version
On CloudFlare pages you can set a env var NODE_VERSION and set value to 16
is that a property?
im using 16.8 node.js version but it still giving me error that your node.js is not update
It's en environment variable
You configure it in your cloudflare pages build settings
https://www.reddit.com/r/CloudFlare/comments/pyj15z/deploying_different_environments_of_angular_app/
2 votes and 2 comments so far on Reddit
cloudflare using ng build --prod but i want to execute this command when its building cs "build": "ng build --configuration production"
Well, try adding that! 💡
i did it in package.json but still showing same error
ohh wait
That should say npm run build or yarn build