WilliamDASILVA / nuxt-stripe-module

A NuxtJS module to import Stripe client script.
MIT License
114 stars 20 forks source link

feat: runtime config #34

Closed TimofeyBiryukov closed 3 years ago

TimofeyBiryukov commented 3 years ago

Enables publishableKey to be injected in runtime config,

Context: Currently, this module is set up to fail on build stage if the publishableKey option is empty. We are developing and distributing our application via docker image, building our image once and run it in many environments with many configs. So, we can't have a stripe publishableKey be present when building image. We want the key to be injected in to the container at runtime and all of our open source modules are already using runtmie configuration which is perfect. We're using this modification to run currently and I think this might help other developers looking for runtime configuration option for nuxt-stripe-module.