GEOLYTIX / xyz

An open source javascript framework for spatial data and application interfaces.
MIT License
88 stars 26 forks source link

zero env config fails in acl module. #1687

Closed dbauszus-glx closed 2 weeks ago

dbauszus-glx commented 2 weeks ago

Without PRIVATE or PUBLIC env the connection will be undefined and fail to look for the first array entry.

const connection = process.env.PRIVATE?.split('|') || process.env.PUBLIC?.split('|')

const acl_table = connection[1]?.split('.').pop()