Walrus.

Допис

Діліться своїми знаннями.

Caplec.
Jun 13, 2025
Питання та відповіді експертів

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
0
2
Поділитися
Коментарі
.

Відповіді

2
cod.
cod41
Jun 13 2025, 21:29

You 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.

0
Коментарі
.
Ramirez.
Jun 13 2025, 23:20

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.

0
Коментарі
.

Ви знаєте відповідь?

Будь ласка, увійдіть та поділіться нею.

Walrus is a decentralized storage and data availability protocol designed specifically for large binary files, or "blobs"

84Пости153Відповіді
Sui.X.Peera.

Зароби свою частку з 1000 Sui

Заробляй бали репутації та отримуй винагороди за допомогу в розвитку спільноти Sui.