vgteam / sequenceTubeMap

displays multiple genomic sequences in the form of a tube map
MIT License
180 stars 25 forks source link

Lazy Bed Regions Download #366

Closed ducku closed 11 months ago

ducku commented 11 months ago

Summary of the current process for bedURLs:

ducku commented 11 months ago

Failing

config-global.mjs loaded before either config-client.js or config-server.mjs

I'm not too sure why this happens.

adamnovak commented 11 months ago

@ducku This is a new check I added. Since common.mjs needs the config, but since the code to load the config on the client can't be imported on the server and visa versa, and since imports can't be conditional, you need to import config-client.js before common.mjs in client code, and you need to import config-server.mjs before common.mjs in server code.

adamnovak commented 11 months ago

I couldn't figure out a better way to write code that needs access to the config and also needs to be portable between the client and server.