Skip to content

Deprecate configurable.environment #83

@Mortaro

Description

@Mortaro

Nullstack has a redundant feature that allows you to define secrets and settings by environment like:
settings.production.name = "Tinky Winky"

This was useful before Nullstack had proper environment support and could be deprecated now so the user can set secrets like:

secrets.name = environment.production ? "Tinky Winky" : "Dipsy"

Also the user will probably just use .env instead

Hints 1:
https://github.com/nullstack/nullstack/blob/master/server/configurable.js
All this could be deleted and replaced with simple objects. Freezing could become a simple Object.freeze.

Tests:
https://github.com/nullstack/nullstack/blob/master/tests/src/ContextSecrets.test.js

I want to remove unneeded features before i claim 1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions