Rename serverUrl
option to serverOrigin
#2913
hdodov
started this conversation in
Feature Requests & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
As the Payload docs say:
Since no paths are allowed and only the protocol, domain, and port are permitted, then this is not actually a URL, but rather an origin. Here's how web.dev describes "origin":
In other words, what the Payload docs describe is exactly an origin.
It'd be great if Payload introduces this at some point and turns:
serverUrl
toserverOrigin
process.env.SERVER_URL
toprocess.env.SERVER_ORIGIN
Beta Was this translation helpful? Give feedback.
All reactions