Comments (3)
Hi @tgfischer! Thanks for asking about this, definitely sounds like a useful plugin. I remember having similar questions in the past and I think we opted to keep build functionality separate simply because there are a lot of different build systems and this particular plugin in mainly for deployment purposes. I would imagine both serverless-build-client
and serverless-finch
potentially being used within some other build system.
@linusmarco What are your thoughts here?
@tgfischer regardless of this particular issue, we'd love to have your help developing new features for serverless-finch! We have several requests sitting around 😁.
from serverless-finch.
Hey @tgfischer! Sorry for the slow response. @fernando-mc is right--the solution we have for this at the moment is the routingRules
configuration parameter. This allows your front end code to hit a relative endpoint (e.g. api/getData
) and then S3 redirects that to your specified API Gateway endpoint. This has worked well for me, but it would be nice to put our heads together and think of a better solution. The downsides of the current solution are:
- S3 buckets reject any HTTP request that's not a GET before any redirects can happen
- There's some minor overhead to the extra HTTP request that happens because of the 3XX redirect
I like the concept of having a solution like yours that doesn't require redirects, but I think we should be careful to make our solution platform/build system agnostic.
Thoughts?
from serverless-finch.
Hey @fernando-mc and @linusmarco. I think I'll keep working on my plugin separately, and focus on building the client. That way users can decide what solution works best for them. I'll keep serverless-finch
as the recommended way to upload the static site to S3 though.
I'll also keep an eye out for features that I think I can contribute to for this project
from serverless-finch.
Related Issues (20)
- Security vulnerability CVE-2021-23440 in set-value versions below 4.0.1 HOT 1
- TypeError: (intermediate value).run is not a function HOT 7
- Using KeyPrefix does not delete the s3 bucket after "sls remove" command. HOT 6
- TypeError: (intermediate value).run is not a function HOT 3
- Unrecognized CLI options with Serverless 3 HOT 5
- MAINTEINERS NEEDED HOT 5
- AWS Credentials for integration tests HOT 7
- Fully automate releases HOT 8
- Enable `Automatically delete head branches` in the repo settings HOT 1
- Approval Requirements - RFC HOT 6
- Review/Harden Default CORS Settings HOT 1
- v4 HOT 4
- Cannot destructure property 'log' of 'undefined' HOT 2
- Avoiding web site breaking with "Missing S3 Bucket" HOT 1
- Sample uploadOrders HOT 4
- Documentation for deletion with keyPrefix
- Provide custom policy and cors configuration through serverless config
- ServerlessError: Access Denied - due to AWS S3 change HOT 1
- TypeError: e.join is not a function on client deploy. HOT 5
- Vulnerability in is-js HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serverless-finch.