Replace util.env("WING_TARGET")
with @app.target
everywhere
#7098
Labels
📚 documentation
Improvements or additions to documentation
✨ enhancement
New feature or request
👠 platforms
Issues relating to Wing Platform Providers
🎨 sdk
SDK
Use Case
Getting the current target through an environment variable is a bit weird and it requires an extra import. I think it might be better if we expose the "platform string" through a field like
@app.target
. This might require updating our existing platforms.I don't think there's any critical need to deprecate the old API. But it will feel good to update our code examples and tests and winglibs to use the new syntax.
Proposed Solution
No response
Implementation Notes
No response
Component
Documentation
Community Notes
The text was updated successfully, but these errors were encountered: