Skip to content

Commit 6cf6955

Browse files
Clarify the use of svelte-kit preview and adapters (sveltejs#1613)
Co-authored-by: Ben McCann <[email protected]>
1 parent c4471a6 commit 6cf6955

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

documentation/docs/10-adapters.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Adapters
33
---
44

5-
Before you can deploy your SvelteKit app, you need to _adapt_ it for your deployment target. Adapters are small plugins that take the built app as input and generate output that is optimised for a specific platform.
5+
Before you can deploy your SvelteKit app, you need to _adapt_ it for your deployment target. Adapters are small plugins that take the built app as input and generate output for deployment. Many adapters are optimised for a specific hosting provider, and you can generally find information about deployment in your adapter's documentation. However, some adapters, like `adapter-static`, build output that can be hosted on numerous hosting providers, so it may also be helpful to reference the documentation of your hosting provider in these cases.
66

77
For example, if you want to run your app as a simple Node server, you would use the `@sveltejs/adapter-node` package:
88

documentation/docs/13-cli.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@ Builds a production version of your app, and runs your adapter if you have one s
2525

2626
- `--verbose` — log more detail
2727

28+
After building the app, you can reference the documentation of your chosen [adapter](#adapters) and hosting platform for specific instructions on how to serve your app.
29+
2830
### svelte-kit preview
2931

30-
After you've built your app with `svelte-kit build`, you can start the production version (irrespective of any adapter that has been applied) locally with `svelte-kit preview`. This is intended for testing the production build locally, **not for serving your app**, for which you should always use an adapter.
32+
After you've built your app with `svelte-kit build`, you can start the production version (irrespective of any adapter that has been applied) locally with `svelte-kit preview`. This is intended for testing the production build locally, **not for serving your app**, for which you should always use an [adapter](#adapters).
3133

3234
Like `svelte-kit dev`, it accepts the following options:
3335

0 commit comments

Comments
 (0)