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
npm start launches http://localhost:3000. If I've ever worked on a different app, its localStorage is now polluting my new app as they share an origin.
Solution
If HOST === 'localhost' then call opn with target set to http://{folder-name}.localhost:{port}
This way every app has a unique origin and this its own localStorage. I know that I can do this manually, but having CRA do it for me would be nice.
Thoughts?
This is related to #2578, but writing a script to get this to work seems like a lot of duplicated effort for each project
I also can't just set HOST as it won't bind to {folder-name}.localhost
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.
Problem
npm start
launcheshttp://localhost:3000
. If I've ever worked on a different app, itslocalStorage
is now polluting my new app as they share an origin.Solution
If
HOST === 'localhost'
then callopn
withtarget
set tohttp://{folder-name}.localhost:{port}
This way every app has a unique origin and this its own
localStorage
. I know that I can do this manually, but having CRA do it for me would be nice.Thoughts?
This is related to #2578, but writing a script to get this to work seems like a lot of duplicated effort for each project
I also can't just set HOST as it won't bind to
{folder-name}.localhost
The text was updated successfully, but these errors were encountered: