Nixpacks build failed on frontend app
Hi! Ive been wokring on a app that uses Python as a API server and frontend using HTML and JS. But when I deploy the githup repo for the frontend I keep getting Nixpacks build failed.
My project Id is : d049f9d9-e78d-469c-92db-07275e5ffd44
Solution:Jump to solution
For such a simple frontend, I agree with Fragly. However, there is a way to get this to work. rename your html file to index.html, then push your code. If that doesn’t work, add all your frontend files to another subfolder, then push
12 Replies
Project ID:
d049f9d9-e78d-469c-92db-07275e5ffd44
Mind sending your build logs using this tool?
https://bookmarklets.up.railway.app/log-downloader/
Thanks!
seems you're trying to host nothing but your frontend on Railway, railway can't really do that for you that way
you'll need a backend that'll serve your frontend to users
My recommendation is to host this on github pages, that way your hosting for your frontend will be completely free
I think I have my backend on Railway, however I havent started connecting them, as Im using flask and cors
Solution
For such a simple frontend, I agree with Fragly. However, there is a way to get this to work. rename your html file to index.html, then push your code. If that doesn’t work, add all your frontend files to another subfolder, then push
Staticfile | Nixpacks
App source + Nix packages + Docker = Image
following this guide
but ideally your backend should be serving these files or you should have more of a frontend infrastructure than just an index.html
It worked with using index.html instead
Thanks a lot!
dang I didn't know nixpacks had that
I googled
no prob!
it's like you forgot our conversation last night lol