Move local development openSCAD url to env vars #242

Closed
opened 2021-03-13 07:18:07 +01:00 by Irev-Dev · 0 comments
Irev-Dev commented 2021-03-13 07:18:07 +01:00 (Migrated from github.com)

I think this make it easier to swap between using the aws endpoint and local endpoint but without having to worry about accidentally committing the local endpoint if you absent mindedly staging everything, and it still defaults to aws so it's easy setup for anyone doing a fresh clone.

add OPENSCAD_BASE_URL="http://localhost:8080" to you .env file.

You will have to restart yarn rw dev for the url to swap over though.

I think this make it easier to swap between using the aws endpoint and local endpoint but without having to worry about accidentally committing the local endpoint if you absent mindedly staging everything, and it still defaults to aws so it's easy setup for anyone doing a fresh clone. add `OPENSCAD_BASE_URL="http://localhost:8080"` to you `.env` file. You will have to restart `yarn rw dev` for the url to swap over though.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: h3n3/cadhub#242