TrickfireRobotics / mission-control

The mission control user interface for "Viator" for the University Rover Challenge
1 stars 2 forks source link

Deploying Project for Non-Software Members #34

Closed adamseth2 closed 1 week ago

adamseth2 commented 1 week ago

Context

Non-software members have requested an easy way to access mission control UI without having to set up npm, npm install etc. Due to browser security having CORS, npm run build simply doesn't work. Error I get: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at file:///C:/Coding%20Projects/mission-control/dist/assets/index-4e95f69b.js. (Reason: CORS request not http). Can read why here

How to implement

Figure out what the easiest way (aka not installing a lot of dependencies) to have a way to access the mission control without installing anything. What seems the easiest is hosting it on GitHub Pages so we can have a HTTP/ HTTPS connection, fixing the CORS issue. Another could be having release versions in GitHub.

uellenberg commented 1 week ago

GitHub Pages has been implemented, although doesn't quite work yet due to build errors (fixed by #35).