Failed to call API on server #8291
Unanswered
EmanueleGuidotti
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hey @EmanueleGuidotti this is likely due to your This is not a problem with Payload itself though so I will convert this to a Q&A discussion and we can continue to help! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Link to reproduction
arkage.staging.arkage.it
Describe the Bug
Hi there,
I’ve just started with Payload. I’ve hosted a simple website copying the website template on a Plesk server and it is up and running here, https://arkage.staging.arkage.it/.
However, when I want to create the admin user https://arkage.staging.arkage.it/admin/create-first-user the system is looking for an API from localhost and I get an error:
http://localhost:3000/api/users/me. While the first API works correctly https://arkage.staging.arkage.it/api/users/init.
Why I have one api working with the correct endpoint and the second one looking from localhost?
To Reproduce
Copy the website template:
npx create-payload-app@latest my-project -t website
Run
yarn install
Run
yarn build
Upload the
dist
,build
,media
,package.json
and.env
on remote PleskConnect to remote Plesk and launch
yarn install
On remote Plesk launch the node server
Visit the
/admin
urlPayload Version
"payload": "^2.0.0"
Adapters and Plugins
db-mongodb
Beta Was this translation helpful? Give feedback.
All reactions