My Practise NextJS app wont deploy correctly
ok so I'm very new to pages and react/nextjs stuff basically found out about it 2 days ago did some research and then made this for some practise before redoing my main site https://github.com/MylesBolton/Homepage
now I tried to deploy it on Cloudflare pages and I just get a black page, im probably doing something wrong, what's the build command I should be using for this app?
or have I used something that's not supported on pages?
am i just stupid?
GitHub
GitHub - MylesBolton/Homepage: Homepage i use for a custom startpag...
Homepage i use for a custom startpage on my browser - GitHub - MylesBolton/Homepage: Homepage i use for a custom startpage on my browser
10 Replies
its currently deployed here https://e4fba8e0.homepage-11n.pages.dev/
the error in console is a 404 error
cant find tha main app or favicon
Is your build command
npx @cloudflare/next-on-pages@1
?not that was giving me a different error so i changed over to npm run build
but il tray it again
try*
and the output will be
Build output directory:
/.vercel/output/static
https://59872598.homepage-11n.pages.dev/
that is the old deployment with that method
This is good! Set that back to your build command, and while you're in there also set this
one sec
had to dig up the docs
like this or do i need to set it as a veribles
retrying the deplomyent
thats perf, just redo your deploy
nice
thanks soo much btw