Closed ducku closed 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.
@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.
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.
Summary of the current process for bedURLs: