Skip to content

[Feature Request] Customizable save endpoint #709

Open
@alenaksu

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);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions