nuxt-community / laravel-echo-module

Laravel Echo for Nuxt 2
MIT License
86 stars 31 forks source link

NuxtJs: Runtime public config (or runtime private config) #33

Closed popovicidinu closed 3 years ago

popovicidinu commented 3 years ago

Hi.

I noticed this repo hasn't been updated in a while, and it could benefit from quite a lot of new features/enhancements. Are you planning to maintain this repo or what's the plan going forward?

One issue that I'm facing right now, is trying to inject variables at runtime config (rather than build), in a NuxtJS installation with ssr: false and target: server. (especially the pusher key, e.g. key: process.env.PUSHER_APP_KEY)

Either I'm not doing something right, or, from the looks of it, this is not supported.

Any hints would be really appreciated.

ricardogobbosouza commented 3 years ago

Hi @popovicidinu I'm updating now, sorry for the delay See #42

pisethx commented 3 years ago

I tried it but does not work in production.

In $echo.options.host, its still use the built time host.

samturrell commented 2 years ago

@ricardogobbosouza i can't seem to find this change in the source anymore? Any idea what happened?

i-galetsky-gs-by commented 1 year ago

https://github.com/nuxt-community/laravel-echo-module/pull/75