From 84f6136c567e9adb85005c23d90c02a87ea269d7 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Wed, 19 Jan 2022 11:04:45 -0500 Subject: [PATCH] Update documentation/docs/10-adapters.md Co-authored-by: Ignatius Bagus --- documentation/docs/10-adapters.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/docs/10-adapters.md b/documentation/docs/10-adapters.md index 01296837dfd3..db8a2af158ba 100644 --- a/documentation/docs/10-adapters.md +++ b/documentation/docs/10-adapters.md @@ -92,7 +92,7 @@ Within the `adapt` method, there are a number of things that an adapter should d - Output code that: - Imports `App` from `${builder.getServerDirectory()}/app.js` - Instantiates the app with a manifest generated with `builder.generateManifest({ relativePath })` - - Listens for requests from the platform, converts them to a standard [Request](https://developer.mozilla.org/en-US/docs/Web/API/Request if necessary), calls the `render` function to generate a [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) and responds with it + - Listens for requests from the platform, converts them to a standard [Request](https://developer.mozilla.org/en-US/docs/Web/API/Request) if necessary, calls the `render` function to generate a [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) and responds with it - Globally shims `fetch` to work on the target platform, if necessary. SvelteKit provides a `@sveltejs/kit/install-fetch` helper for platforms that can use `node-fetch` - Bundle the output to avoid needing to install dependencies on the target platform, if necessary - Put the user's static files and the generated JS/CSS in the correct location for the target platform