Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Setting Environment-specific Values in main.wasp File - Wasp
W
Wasp
•
3y ago
•
5 replies
Harish
Setting Environment-specific Values in main.wasp File
Currently
, in WASP
, we
're able to insert static
o
g
:tags in the main
.wasp file
's head section like
:
https://github.com/wasp-lang/open-saas/blob/main/app/main.wasp#L8
However
, I
'm exploring the possibility of dynamically assigning values to attributes such as
o
g
:image and
o
g
:url based on the environment
.
For instance
, in the staging environment
, I want to set
og:image
og:image
as
"
https://www.staging.com/public-banner.png
"
, whereas in production
, I
'd like it to be
"
https://www.production.com/public-banner.png
"
.
Is there a way to accomplish this dynamic behavior directly within the main
.wasp file
?
Staging.com domain name may be for sale
Staging
.com
- Contact us for any business inquiries
GitHub
open-saas/app/main.wasp at main · wasp-lang/open-saas
A free
, open
-source SaaS app starter for React
& Node
.js with superpowers
. Production
-ready
. Community
-driven
.
- wasp
-lang
/open
-saas
Wasp
Join
Rails-like framework for React, Node.js and Prisma. Build your app in a day and deploy it with a single CLI command.
4,622
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Main.wasp in GH action
W
Wasp / 🙋questions
10mo ago
dynamic variables in main.wasp
W
Wasp / 🙋questions
2y ago
main.wasp question
W
Wasp / 🙋questions
3y ago
Setting up Wasp
W
Wasp / 🙋questions
2y ago