is it possible to launch my node.js server as a gh pages? #149398
Replies: 3 comments 1 reply
-
Hi @alextheradu The answer is no. GitHub Pages only serves static files (HTML, CSS, JS) and does not support running a Node.js server directly. However, you can use GitHub Codespaces to host and run your Node.js server and share its public URL for access. Alternatively, deploy your Node.js server to a platform like Vercel, Render, or Heroku. |
Beta Was this translation helpful? Give feedback.
-
Unfortunately, GitHub Pages does not support running Node.js servers directly. GitHub Pages is designed for serving static content (HTML, CSS, JS files) and doesn't have the capability to run a dynamic backend server like Node.js. However, you can deploy your frontend (e.g., React, Angular, Vue) to GitHub Pages and host your Node.js server elsewhere, such as on platforms like Heroku, Vercel, or DigitalOcean, and have the frontend interact with your Node.js backend via API calls. |
Beta Was this translation helpful? Give feedback.
-
No, github pages only serve static files. You can deploy it on different server. |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
I am working on a cool project, and was wondering if it's possible to run it as a gh pages if I run the node on codespaces (which is possible.) Please let me know!
Beta Was this translation helpful? Give feedback.
All reactions