Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Loading Error at first deployment

default discord avatar
muperdev2 years ago
6

I just faced a problem in my first deploy, in development when I work with admin it's fine, but when I deployed it to cloud when I open the URL, it automaticlly redirect to admin/create-first-user and then stay at loading

  • discord user avatar
    alessiogr
    2 years ago

    could you check your browser console if there's any errors?

  • default discord avatar
    muperdev2 years ago

    yes there's an error I'll attach here





    I tried to remove the redirect from admin to admin/login, just in case maybe it's the problem, but it didn't work



    maybe it's from serverUrl, isn't it?

  • discord user avatar
    alessiogr
    2 years ago

    Other than the browser network log, is there an error in the browser console too?



    A lot of times, the loading login screen is caused by an incorrect serverURL, yep

  • default discord avatar
    muperdev2 years ago

    sorry for that, this is the console as well



    now the problem is, I pushed the new URL to my github and I triggered the redeploy but how can I make sure that it's the new version that I'm seeing it?



    cause it still goes through create-first-user not to login page that I replaced by it

  • discord user avatar
    alessiogr
    2 years ago

    hm optimally it wouldn't say localhost here when it's deployed. If it still says localhost, it's definitely still using the old serverURL

  • default discord avatar
    muperdev2 years ago

    actually I fixed it, but I highly recommend two things:



    first it would be better if you show the current version of deployment by showing it's name, second I suggest to show the deployment CI/CD process whenever the user push through github



    after all thank you for your support

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.