How to change the .env on production #8288
Unanswered
EmanueleGuidotti
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi peeps,
I'm new to payload and currently I'm building my first application. After build it I put the app on Plesk with
package.json
,dist
,.next
andbuild
resources. I runyarn install
and launched the node server provided by Plesk. If I go to the default url all works correctly https://arkage.staging.arkage.it/, but if I go to the/admin/create-first-user
directory I see which two api are called: https://arkage.staging.arkage.it/api/users/init and http://localhost:3000/api/users/me and the second one is incorrect. Is there a reason because the/me
api is called under localhost? I've to change my.env
file maybe?If I try to check if the api works under the https://arkage.staging.arkage.it/api/users/me it works correctly. I don't understand why localhost is used only on one api call.
Anyone knows how to solve this problem?
Beta Was this translation helpful? Give feedback.
All reactions