Angular is just showing green background, doesn't seem to be picking up Angular component
Runs fine in live server, but just picking up green background set in global style sheet on deployed website
8 Replies
After some more searching, it appears that it's not finding these files listed in uploaded assets, is there a way I can make this visible?
You want to change your Build Output path to include browser, if using Angular I believe you'd want
dist/cloudflare/browser
Under Settings -> Builds & Deployments -> Build Configurations -> Edit ConfigurationI've currently got that set in angular.json and in Cloudflare
the name of main seems to be different between the two of them, could this be a git integration issue?
if you changed it, you need to rerun the build.
what's the pages.dev?
https://brdlyt.pages.dev/, but I've not had that page working. It's only the custom domain that seems to be showing the background
https://brdlyt.pages.dev/browser/ semi-works but then it 404s on the assets because it's looking for them on root
you just need to change your output directory to include
browser
, ex: dist/cloudflare/browser
, rerun the build, assets uploaded should no longer show the browser folder and show everything top levelThis is my angular.json file compared with my build configurations in Cloudflare, haven't changed anything, this is what it was on originally
I believe that you don't want to change the angular one, and it should still be
dist/cloudflare
and then rerun that build
otherwise you're just telling angular to push it under another directory all over again