Setting Environment-specific Values in main.wasp File
Currently, in WASP, we're able to insert static og: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 og:image and og:url based on the environment.
For instance, in the staging environment, I want to set
Is there a way to accomplish this dynamic behavior directly within the main.wasp file?
However, I'm exploring the possibility of dynamically assigning values to attributes such as og:image and og:url based on the environment.
For instance, in the staging environment, I want to set
og:imageas "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 - Contact us for any business inquiries
GitHub
A free, open-source SaaS app starter for React & Node.js with superpowers. Production-ready. Community-driven. - wasp-lang/open-saas