Skip to content

Instantly share code, notes, and snippets.

@snewcomer
Created October 2, 2020 03:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save snewcomer/86d32b1c6f2cede33754a31d87545e17 to your computer and use it in GitHub Desktop.
Save snewcomer/86d32b1c6f2cede33754a31d87545e17 to your computer and use it in GitHub Desktop.
ember-cli-fastboot proposal
## Architecture
A possible future design of ember-cli-fastboot which achieves the goal of "production ready."
### General Design
ember-cli-fastboot combines a couple of critical components for a user's experience in development and production.
1. **Production** - fastboot service, utils to add to and clear the shoebox, and managing the HTML on handoff to the client.
2. **Development** - an express server that instantiates a FastBoot instance, plugs the FastBoot middleware into the pipeline, reload capabilities and build time utilities.
This helps users get up and running in development. However, when deploying to production, you are likely to deploy the provided `fastboot-app-server` to server side render your app.
This results in a variation that might not represent your eventual production environment.
### Proposal
Enable using the production `fastboot-app-server` during development. In addition, extensible build tasks and middleware customization.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment