Next.js Discord

Discord Forum

Load dynamic favicon

Unanswered
Black Caiman posted this in #help-forum
Open in Discord
Black CaimanOP
Hello,
I want to load favicon based on environment variable.
I have a Docker setup (self hosting) and I'm using same repository for 2 projects (Same data structure). Due to this I have an env variable: PROJECT=...
The main issue is in build time I don't have this env yet and I can't use it in Layout to check which project favicon, images should load.
This is an admin panel, so not too much change is in there, mostly logo, favicon, etc.

0 Replies