Open
Description
The save endpoint is currently hardcoded and not configurable, so it only works when used with aframe-watcher
running on the default port.
In my case, I was looking to implement a Vite
plugin to seamlessly integrate the save functionality with its dev server, but this is unfortunately not possible without hacks.
Having such endpoint configurable, would make it easier the integration with other tools, without having to rely only on the aframe-watcher
tool.
It would be nice to pass the configuration to the inspector somehow, for example by defining a global variable like in the example below:
const inspectorOptions = {
// Defaults
saveEndpoint: 'http://localhost:51234/save',
// User-defined
...window.__AFRAME_INSPECTOR__
};
xhr.open('POST', inspectorOptions.saveEndpoint);
Metadata
Assignees
Labels
No labels
Activity