-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Static frontend + API/Function #311
Comments
Basically, a stack for a Client-side rendered SPA + backend on same distribution/domain |
I hacked a working prototype copied from |
Would putting a Router in front of both the static site and API work? |
It might but basically anyone that looks at the result would yell (not in a good way). |
I think the best way would be refactoring StaticSite or deprecating it and creates a new one which uses Router under the hood and exposes an arg to configure the routes, this allows for a DRY-er code and always align StaticSite routing behavior with Router if we update it. |
Alternatively could be solved with an improved Maybe out of topic but would be great if we could implement an |
Yeah we need to review this a bit. It might need a design change. |
Hi,
I'm trying to achieve a deployment of which it's similar to
StaticSite
where we only build and deploy the site's frontend onsst deploy
, notsst dev
, with the ability to link to an API/Function to host in the same Cdn and custom domain, like:Is it possible / how clean is it to achieve in the current state of Ion?
The text was updated successfully, but these errors were encountered: