Skip to content

process.env.DEV type is string but documented as booleanΒ #18238

@suzhenghui-sky

Description

@suzhenghui-sky

What happened?

process.env.DEV returns a string value (e.g., "true" or "false") at runtime, but the documentation states it should be a boolean type.

What did you expect to happen?

process.env.DEV should be a boolean type (true/false) as documented, not a string. Alternatively, the documentation should be updated to reflect that it's actually a string type.

Reproduction URL

https://stackblitz.com/edit/quasarframework-stackblitz-templates-bgfykhkr?file=src%2Fpages%2FIndexPage.vue&title=Quasar%20Framework%20-%20app-vite%20v2

How to reproduce?

  1. Open the reproduction link
  2. Open the browser console or check the rendered output
  3. Check the type of process.env.DEV using typeof process.env.DEV
  4. Observe that it returns "string" instead of "boolean"
  5. Compare with the documentation which states it should be boolean

Flavour

Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)

Areas

Quasar CLI Commands/Configuration (@quasar/cli | @quasar/app-webpack | @quasar/app-vite)

Platforms/Browsers

No response

Quasar info output

Relevant log output

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions