This change enables us to build docs with the "current" docs included (useful for creating preview docs at some internal URL before they are released to users).
Before
We used NODE_ENV to check if we wanted to include the current docs.
Worked in dev. ✅
We were unable to include the current docs in the production build. 🟥
After
Now we used DOCS_INCLUDE_CURRENT_VERSION to check if we want to include the current docs.
Works in dev. ✅
We now can include the current docs if we wanted to in the production build. ✅
This change enables us to build docs with the "current" docs included (useful for creating preview docs at some internal URL before they are released to users).
Before
NODE_ENV
to check if we wanted to include the current docs.After
DOCS_INCLUDE_CURRENT_VERSION
to check if we want to include the current docs.