Summary
In this chapter, we covered many configuration options available for SvelteKit. We went over an example of how config.kit.alias
might be useful for importing frequently accessed files. While we did not cover all options, we did briefly look at the appDir
, csp
, csrf
, env
, and prerender
options and how they can affect our application.
We also glanced at some configuration options available in vite.config.js
. For the most part, SvelteKit sets up a configuration that works for us according to the choices made in the installation prompt, but for further tweaks and plugins, we now know where to start looking in the official Vite documentation.
In the next chapter, we’ll go over some existing web standards and how SvelteKit’s design keeps them in mind. Existing standards present in web browsers are quickly becoming supported in other environments, including Node-based environments or even Deno and Cloudflare Workers. By leveraging these standards instead of building...