Akryum / Akryum/vue-cli-plugin-ssr

In production ".env.${MODE}" file is not taken in account

Aperta
#104 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
441
Fork
69
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hi,

Just noticed that when going to production (`ssr:build` and `ssr:start`) in the `entry-server.js` I'm able to access all environment variables from `.env` but not those from `.env.${MODE}` (with MODE being your custom mode).

Note that I'am specifying the `--mode` when building and starting the app.

Thank you,

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.