You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I was wondering if it is possible to change the base url as I could not find anything pointing that out in the current documentation.
As an example, I could use something like basename={process.env.PUBLIC_URL} in a Routes component (react-router v6) in a CRA,
and use the homepage field in package.json to host the app on http://mywebsite.com/relativepath as an example.
I guess I got confused since I havent done SSR before 😅
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I was wondering if it is possible to change the base url as I could not find anything pointing that out in the current documentation.
As an example, I could use something like
basename={process.env.PUBLIC_URL}
in aRoutes
component (react-router v6) in a CRA,and use the
homepage
field inpackage.json
to host the app onhttp://mywebsite.com/relativepath
as an example.I guess I got confused since I havent done SSR before 😅
Thanks for any help, keep up the nice work!
Beta Was this translation helpful? Give feedback.
All reactions