stormkit-io / app-stormkit-io

Stormkit is an all in one solution for Full Stack Javascript applications.
https://app.stormkit.io
GNU General Public License v3.0
66 stars 8 forks source link

Add Configurable Default Origin URL for Serverless Functions #589

Closed robertocommit closed 2 weeks ago

robertocommit commented 3 weeks ago

Is your feature request related to a problem? Please describe. When deploying applications with serverless functions on Stormkit, the default origin is set to localhost with a port. This creates challenges when configuring CORS in backend applications, as the port makes it difficult to maintain consistent CORS settings. Currently, there's no way to set or view a fixed origin URL for serverless functions unless using specific framework logic.

image

Describe the solution you'd like

  1. Add a dedicated section in the serverless configuration UI that displays a default origin URL for serverless functions
  2. Optional: allow users to view and modify this origin URL through the Stormkit dashboard
  3. Automatically apply this origin URL when deploying serverless functions instead of using localhost

Additional context This feature would improve the developer experience by:

svedova commented 2 weeks ago

Thanks for opening this issue! I have implemented the following behaviour:

It's already in latest branch, and it will be included in the upcoming release so closing this issue 🙏