Modules and Secrets
While routing is certainly important to SvelteKit, there is far more to it than just that. Throughout this book, we’ve utilized multiple different SvelteKit modules. For instance, we’ve imported bindings from $app/forms
, $app/environment
, and $app/stores
, to name a few. But we have yet to explore what these modules are or how they work. In this chapter, we’ll give a brief overview of some of the modules we’ve seen previously as well as some we have not yet seen. We’ll also cover some of the modules used for managing secrets and when to use which ones.
In this chapter, we’ll examine the following:
- SvelteKit Module Summaries
- Keeping Secrets Safe
Having covered various modules, as well as examining our previous example of storing GitHub API secrets, we’ll have a clear understanding of when best to harness the power of each individual module.