Yeah, I have considered using relative URLs but I think absolute URLs are more "clean".
My main points are that they are a bit confusing and harder to reason about.
Also, it seems like it would not work that well with client-side routing. Without the PUBLIC_URL we cannot find out what part of the path is the base, but I might be wrong here!
Do you have an example of client-side routing with a relative URL?
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Have you considered using relative URLs?
PUBLIC_URL=.
Results in URLs like "./favicon.ico"
Then you can deploy your app to any folder, like /app, or /some/arbitrary/folder
dev-to-uploads.s3.amazonaws.com/i/...
Yeah, I have considered using relative URLs but I think absolute URLs are more "clean".
My main points are that they are a bit confusing and harder to reason about.
Also, it seems like it would not work that well with client-side routing. Without the
PUBLIC_URL
we cannot find out what part of the path is the base, but I might be wrong here!Do you have an example of client-side routing with a relative URL?