Open hydrosquall opened 4 years ago
@hydrosquall I started thinking about how we might do this and ended up with a branch that mostly does it...
The general idea is:
API_URL
in .env to the correct API server instance (localhost or production)The missing piece is being able to contact the deployed API. At the moment we restrict CORS origins to only p5js.org
. I've opened PR #1398 to address this.
To run the client only, you npm run start:client
and to run both npm start
.
Once we have this separation, then we can start experimenting with other packagers.
What do you think?
Hi @andrewn, I think that sounds like a clean approach, as long as there aren't any particular security motivations to keep the CORS restrictions. I think this should be fine especially if someone just wants to be running the site in a "stateless" mode.
Nature of issue?
Feature enhancement details:
New feature details: