teleclimber / Dropserver

An application platform for your personal web services. https://dropserver.org
Apache License 2.0
45 stars 1 forks source link

Need to plan for a way to tell ds-dev and ds-host to swap out certain libraries in deno sandbox #62

Closed teleclimber closed 2 years ago

teleclimber commented 2 years ago

The sandbox generates a import.json for deno that prevents all local code except white-listed dirs from being loaded as modules.

This is a problem when developing new dropserver_app library version locally, and for dropserver_interfaces too. Would be good to make it feasible to tell ds-dev and ds-host to load alternative versions via import map. This would imply doing something like this in import map:

"https://deno.land/x/dropserver_interfaces/": "/Users/ollie/Documents/Projects/tests/21-12-17-deno-ds/interfaces/",
"/Users/ollie/Documents/Projects/tests/21-12-17-deno-ds/interfaces/": "/Users/ollie/Documents/Projects/tests/21-12-17-deno-ds/interfaces/",

In ds-host we could just add to the config, but ds-dev doesn't have a config right now, so not as clear.

teleclimber commented 2 years ago

It's not clear why we need this functionality in ds-host. If we are developing an improved library, then having it fully sorted out in ds-dev should be enough? If it's close enough to being ready that it's being tested in ds-host, it could be published as a beta?