Couldn't figure out how the default value for selectors gets setted from the query string on the old canon-cms package, but I figure out we can hold on this for this first release, until I figure it out.
EDIT: you'll see that I had to setup a proxy for the canon API, this is because tsup transpile the env vars references with object destructuring, which doesn't work in next (as we already talked about). I couldn't find a way for tsup to not do that. So I thought the best way was to take out all the env vars from the file and point canon-next to a known api endpoint.
Notes:
Readme.md
canon-cms
package, but I figure out we can hold on this for this first release, until I figure it out.EDIT: you'll see that I had to setup a proxy for the canon API, this is because
tsup
transpile the env vars references with object destructuring, which doesn't work in next (as we already talked about). I couldn't find a way fortsup
to not do that. So I thought the best way was to take out all the env vars from the file and pointcanon-next
to a known api endpoint.EDIT2: @davelandry no proxy just env variables