-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
389 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
title: What can I make with SvelteKit? | ||
--- | ||
|
||
SvelteKit can be used to create most kinds of applications. Out of the box, SvelteKit supports many features including: | ||
|
||
- Dynamic page content with [load](/docs/load) functions and [API routes](/docs/routing#server). | ||
- SEO-friendly dynamic content with [server-side rendering (SSR)](/docs/glossary#ssr). | ||
- User-friendly progressively-enhanced interactive pages with SSR and [Form Actions](/docs/form-actions). | ||
- Static pages with [prerendering](/docs/page-options#prerender). | ||
|
||
SvelteKit can also be deployed to a wide spectrum of hosted architectures via [adapters](/docs/adapters). In cases where SSR is used (or server-side logic is added without prerendering), those functions will be adapted to the target backend. Some examples include: | ||
|
||
- Self-hosted dynamic web applications with a [Node.js backend](/docs/adapter-node). | ||
- Serverless web applications with backend loaders and APIs deployed as remote functions. See [zero-config deployments](/docs/adapter-auto) for popular deployment options. | ||
- [Static pre-rendered sites](/docs/adapter-static) such as a blog or multi-page site hosted on a CDN or static host. Statically-generated sites are shipped without a backend. | ||
- [Single-page Applications (SPAs)](/docs/single-page-apps) with client-side routing and rendering for API-driven dynamic content. SPAs are shipped without a backend and are not server-rendered. This option is commonly chosen when bundling SvelteKit with an app written in PHP, .Net, Java, C, Golang, Rust, etc. | ||
- A mix of the above; some routes can be static, and some routes can use backend functions to fetch dynamic information. This can be configured with [page options](/docs/page-options) that includes the option to opt out of SSR. | ||
|
||
In order to support SSR, a JS backend — such as Node.js or Deno-based server, serverless function, or edge function — is required. | ||
|
||
It is also possible to write custom adapters or leverage community adapters to deploy SvelteKit to more platforms such as specialized server environments, browser extensions, or native applications. See [How do I use X with SvelteKit](#integrations) for more examples and integrations. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
packages/kit/src/core/sync/write_types/test/layout-advanced/tsconfig.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"compilerOptions": { | ||
"allowJs": true, | ||
"checkJs": true, | ||
"noEmit": true, | ||
"strict": true, | ||
"target": "es2020", | ||
"module": "es2022", | ||
"moduleResolution": "node", | ||
"allowSyntheticDefaultImports": true, | ||
"baseUrl": ".", | ||
"paths": { | ||
"@sveltejs/kit": ["../../../../../exports/public"], | ||
"types": ["../../../../../types/internal"] | ||
} | ||
}, | ||
"include": ["./**/*.js"], | ||
"exclude": ["./**/.svelte-kit/**"] | ||
} |
19 changes: 19 additions & 0 deletions
19
packages/kit/src/core/sync/write_types/test/layout/tsconfig.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"compilerOptions": { | ||
"allowJs": true, | ||
"checkJs": true, | ||
"noEmit": true, | ||
"strict": true, | ||
"target": "es2020", | ||
"module": "es2022", | ||
"moduleResolution": "node", | ||
"allowSyntheticDefaultImports": true, | ||
"baseUrl": ".", | ||
"paths": { | ||
"@sveltejs/kit": ["../../../../../exports/public"], | ||
"types": ["../../../../../types/internal"] | ||
} | ||
}, | ||
"include": ["./**/*.js"], | ||
"exclude": ["./**/.svelte-kit/**"] | ||
} |
19 changes: 19 additions & 0 deletions
19
packages/kit/src/core/sync/write_types/test/simple-page-server-and-shared/tsconfig.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"compilerOptions": { | ||
"allowJs": true, | ||
"checkJs": true, | ||
"noEmit": true, | ||
"strict": true, | ||
"target": "es2020", | ||
"module": "es2022", | ||
"moduleResolution": "node", | ||
"allowSyntheticDefaultImports": true, | ||
"baseUrl": ".", | ||
"paths": { | ||
"@sveltejs/kit": ["../../../../../exports/public"], | ||
"types": ["../../../../../types/internal"] | ||
} | ||
}, | ||
"include": ["./**/*.js"], | ||
"exclude": ["./**/.svelte-kit/**"] | ||
} |
19 changes: 19 additions & 0 deletions
19
packages/kit/src/core/sync/write_types/test/simple-page-server-only/tsconfig.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"compilerOptions": { | ||
"allowJs": true, | ||
"checkJs": true, | ||
"noEmit": true, | ||
"strict": true, | ||
"target": "es2020", | ||
"module": "es2022", | ||
"moduleResolution": "node", | ||
"allowSyntheticDefaultImports": true, | ||
"baseUrl": ".", | ||
"paths": { | ||
"@sveltejs/kit": ["../../../../../exports/public"], | ||
"types": ["../../../../../types/internal"] | ||
} | ||
}, | ||
"include": ["./**/*.js"], | ||
"exclude": ["./**/.svelte-kit/**"] | ||
} |
19 changes: 19 additions & 0 deletions
19
packages/kit/src/core/sync/write_types/test/simple-page-shared-only/tsconfig.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"compilerOptions": { | ||
"allowJs": true, | ||
"checkJs": true, | ||
"noEmit": true, | ||
"strict": true, | ||
"target": "es2020", | ||
"module": "es2022", | ||
"moduleResolution": "node", | ||
"allowSyntheticDefaultImports": true, | ||
"baseUrl": ".", | ||
"paths": { | ||
"@sveltejs/kit": ["../../../../../exports/public"], | ||
"types": ["../../../../../types/internal"] | ||
} | ||
}, | ||
"include": ["./**/*.js"], | ||
"exclude": ["./**/.svelte-kit/**"] | ||
} |
19 changes: 19 additions & 0 deletions
19
...ges/kit/src/core/sync/write_types/test/slugs-layout-not-all-pages-have-load/tsconfig.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"compilerOptions": { | ||
"allowJs": true, | ||
"checkJs": true, | ||
"noEmit": true, | ||
"strict": true, | ||
"target": "es2020", | ||
"module": "es2022", | ||
"moduleResolution": "node", | ||
"allowSyntheticDefaultImports": true, | ||
"baseUrl": ".", | ||
"paths": { | ||
"@sveltejs/kit": ["../../../../../exports/public"], | ||
"types": ["../../../../../types/internal"] | ||
} | ||
}, | ||
"include": ["./**/*.js"], | ||
"exclude": ["./**/.svelte-kit/**"] | ||
} |
19 changes: 19 additions & 0 deletions
19
packages/kit/src/core/sync/write_types/test/slugs/tsconfig.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"compilerOptions": { | ||
"allowJs": true, | ||
"checkJs": true, | ||
"noEmit": true, | ||
"strict": true, | ||
"target": "es2020", | ||
"module": "es2022", | ||
"moduleResolution": "node", | ||
"allowSyntheticDefaultImports": true, | ||
"baseUrl": ".", | ||
"paths": { | ||
"@sveltejs/kit": ["../../../../../exports/public"], | ||
"types": ["../../../../../types/internal"] | ||
} | ||
}, | ||
"include": ["./**/*.js"], | ||
"exclude": ["./**/.svelte-kit/**"] | ||
} |
Oops, something went wrong.