manuelhenke / nuxt-envalid

Validates your env variables and loads them cleaned into your application context
https://nuxt-envalid.henkebyte.com
MIT License
3 stars 0 forks source link

Support Nuxt v3 #20

Open manuelhenke opened 1 year ago

manuelhenke commented 1 year ago

Is your feature request related to a problem? Please describe. Currently only Nuxt 2 is supported. Nuxt 3 introduces a new way of handling environment variables. This module should be extended to fit the new approach of environment variables handling in Nuxt 3.

Describe the solution you'd like Since this module should validate the environment variables wich are not already part of the code, this module should validate a possible .env file, which is used to fill the new property privateRuntimeConfig of the Nuxt config.

Describe alternatives you've considered This module could also be used in the Context of Nuxt 3 to validate the privateRuntimeConfig and publicRuntimeConfig after it has been filled. As a different approach to the stated solution to validate beforehand.

Additional context

github-actions[bot] commented 1 year ago

Thank you for posting an issue!

As a reminder, have you checked the code of conduct?