Open runemadsen opened 1 year ago
I like it and am all in on this!
Furthermore I'd like to add an idea that might be more of a "power user feature":
Build Step Customization Hooks
- allows users to inject their own code or pass a configuration to the webpack function build step (I had a webpack issue and could only resolve it by monkey-patching the webpack config inside of node_modules directly)And some ideas to make getting started with this a bit simpler:
More meaningful error messages
- when setting things up and not being aware of the ESM <-> CJS conflict I got a "Validation Error" as error message, which made it a bit hard to track down that in reality it was a "File not found" errorSimplify function config creation
- maybe by adding more inline comments to the generated *.cf.js
file that first time lambda user through the setting (or by extending the CLI prompt and then only give a user the config files when they choose to eject)Another idea that arose from the need of linking an existing subdomain to a site deployed using static
. As this was just the subdomain of an already existing domain system moving the entire DNS to Route53 was not an option:
I think we should consider merging
static
anddynamic
into a single tool that can deploy both static and dynamic infrastructure. Too many of our project require both, and it's a bit annoying to have two separate tools to deploy a single applications. Here's an idea of what it could be:CLI deploy
- Deploys everythingCLI deploy static
- Deploys a static site to S3 and Cloudfront with all the current settingsCLI deploy functions
- Deploys all code in/functions
to AWS Lambda just like NetlifyCLI deploy function NAME
- Deploys a single functionCLI eject
creates cloudformation templates for the static site and functions in aoperations
folderFurthermore:
/operations
folder with or without the ejected templatesThe aim should be that we can take any site that works in Netlify and it will also deploy with our tool with only slight changes.