Publication
Partagez vos connaissances.
Can I set env vars in a Walrus published site?
I'm trying to figure out if it's possible to set environment variables in a site published on Walrus. The idea is to adjust certain settings dynamically, but I'm unsure if Walrus supports such backend variables due to its static nature. Any insights?
- Walrus
Réponses
2You cannot set environment variables inside a Walrus Site itself. Walrus Sites are fully static and publicly accessible: all site content and metadata are stored on-chain (Sui) and on Walrus, and there is no backend or server-side execution where environment variables could be injected or used.
For portal configuration involving environment variables, these are set in the .env.local
file at the root of each portal directory you're working with, not on the static site itself.
Connaissez-vous la réponse ?
Veuillez vous connecter et la partager.
Walrus is a decentralized storage and data availability protocol designed specifically for large binary files, or "blobs"
Gagne ta part de 1000 Sui
Gagne des points de réputation et obtiens des récompenses pour avoir aidé la communauté Sui à se développer.