Skip to content

Commit 4d4665f

Browse files
Rename Svelte to SvelteKit in guide (#26908)
* Rename Svelte to SvelteKit in guide * Update src/content/docs/workers/framework-guides/web-apps/svelte.mdx Co-authored-by: Matt Kane <[email protected]> * Rename Svelte to SvelteKit page, add redirect * Update links --------- Co-authored-by: Matt Kane <[email protected]>
1 parent 09e8ca3 commit 4d4665f

File tree

5 files changed

+10
-9
lines changed

5 files changed

+10
-9
lines changed

public/__redirects

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1879,6 +1879,7 @@
18791879
/workers/frameworks/framework-guides/qwik/ /workers/framework-guides/web-apps/more-web-frameworks/qwik/ 301
18801880
/workers/frameworks/framework-guides/solid/ /workers/framework-guides/web-apps/more-web-frameworks/solid/ 301
18811881
/workers/framework-guides/web-apps/tanstack/ /workers/framework-guides/web-apps/tanstack-start/ 301
1882+
/workers/framework-guides/web-apps/svelte/ /workers/framework-guides/web-apps/sveltekit/ 301
18821883
/workers/testing/unit-testing/ /workers/testing/vitest-integration/write-your-first-test/ 301
18831884
/workers/testing/integration-testing/ /workers/testing/ 301
18841885
/workers/testing/vitest-integration/get-started/ /workers/testing/vitest-integration/write-your-first-test/ 301

src/content/changelog/workers/2025-04-08-fullstack-on-workers.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The following full-stack frameworks now have Generally Available ("GA") adapters
1919
- [Hono](/workers/framework-guides/web-apps/more-web-frameworks/hono/)
2020
- [Vue.js](/workers/framework-guides/web-apps/vue/)
2121
- [Nuxt](/workers/framework-guides/web-apps/more-web-frameworks/nuxt/)
22-
- [Svelte (SvelteKit)](/workers/framework-guides/web-apps/svelte/)
22+
- [Svelte (SvelteKit)](/workers/framework-guides/web-apps/sveltekit/)
2323
- And [more](/workers/framework-guides/).
2424

2525
The following frameworks are now in **beta**, with GA support coming very soon:

src/content/docs/workers/framework-guides/web-apps/svelte.mdx renamed to src/content/docs/workers/framework-guides/web-apps/sveltekit.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
pcx_content_type: how-to
3-
title: Svelte
3+
title: SvelteKit
44
sidebar:
55
order: 8
66
tags: ["spa"]
7-
description: Create a Svelte application and deploy it to Cloudflare Workers with Workers Assets.
7+
description: Create a SvelteKit application and deploy it to Cloudflare Workers with Workers Assets.
88
---
99

1010
import {
@@ -15,13 +15,13 @@ import {
1515
PackageManagers,
1616
} from "~/components";
1717

18-
In this guide, you will create a new [Svelte](https://svelte.dev/) application and deploy to Cloudflare Workers (with the new [Workers Assets](/workers/static-assets/)).
18+
In this guide, you will create a new [SvelteKit](https://svelte.dev/docs/kit/introduction) application and deploy to Cloudflare Workers.
1919

2020
## 1. Set up a new project
2121

22-
Use the [`create-cloudflare`](https://www.npmjs.com/package/create-cloudflare) CLI (C3) to set up a new project. C3 will create a new project directory, initiate Svelte's official setup tool, and provide the option to deploy instantly.
22+
Use the [`create-cloudflare`](https://www.npmjs.com/package/create-cloudflare) CLI (C3) to set up a new project. C3 will create a new project directory, initiate SvelteKit's official setup tool, and provide the option to deploy instantly.
2323

24-
To use `create-cloudflare` to create a new Svelte project with Workers Assets, run the following command:
24+
To use `create-cloudflare` to create a new SvelteKit project with Workers Assets, run the following command:
2525

2626
<PackageManagers
2727
type="create"
@@ -53,6 +53,6 @@ The following command will build and deploy your project. If you're using CI, en
5353

5454
## Bindings
5555

56-
Your Svelte application can be fully integrated with the Cloudflare Developer Platform, in both local development and in production, by using product bindings. The [Svelte documentation](https://kit.svelte.dev/docs/adapter-cloudflare#runtime-apis) provides information about configuring bindings and how you can access them in your Svelte hooks and endpoints.
56+
Your SvelteKit application can be fully integrated with the Cloudflare Developer Platform, in both local development and in production, by using product bindings. The [SvelteKit documentation](https://kit.svelte.dev/docs/adapter-cloudflare#runtime-apis) provides information about configuring bindings and how you can access them in your SvelteKit hooks and endpoints.
5757

5858
<Render file="frameworks-bindings" product="workers" />

src/content/docs/workers/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ A serverless platform for building, deploying, and scaling apps across [Cloudfla
1717

1818
With Cloudflare Workers, you can expect to:
1919
- Deliver fast performance with high reliability anywhere in the world
20-
- Build full-stack apps with your framework of choice, including [React](/workers/framework-guides/web-apps/react/), [Vue](/workers/framework-guides/web-apps/vue/), [Svelte](/workers/framework-guides/web-apps/svelte/), [Next](/workers/framework-guides/web-apps/nextjs/), [Astro](/workers/framework-guides/web-apps/astro/), [React Router](/workers/framework-guides/web-apps/react-router/), [and more](/workers/framework-guides/)
20+
- Build full-stack apps with your framework of choice, including [React](/workers/framework-guides/web-apps/react/), [Vue](/workers/framework-guides/web-apps/vue/), [Svelte](/workers/framework-guides/web-apps/sveltekit/), [Next](/workers/framework-guides/web-apps/nextjs/), [Astro](/workers/framework-guides/web-apps/astro/), [React Router](/workers/framework-guides/web-apps/react-router/), [and more](/workers/framework-guides/)
2121
- Use your preferred language, including [JavaScript](/workers/languages/javascript/), [TypeScript](/workers/languages/typescript/), [Python](/workers/languages/python/), [Rust](/workers/languages/rust/), [and more](/workers/runtime-apis/webassembly/)
2222
- Gain deep visibility and insight with built-in [observability](/workers/observability/logs/)
2323
- Get started for free and grow with flexible [pricing](/workers/platform/pricing/), affordable at any scale

src/content/docs/workers/static-assets/routing/single-page-application.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ sidebar:
88

99
import { WranglerConfig, TypeScriptExample, Render } from "~/components";
1010

11-
Single Page Applications (SPAs) are web applications which are client-side rendered (CSR). They are often built with a framework such as [React](/workers/framework-guides/web-apps/react/), [Vue](/workers/framework-guides/web-apps/vue/) or [Svelte](/workers/framework-guides/web-apps/svelte/). The build process of these frameworks will produce a single `/index.html` file and accompanying client-side resources (e.g. JavaScript bundles, CSS stylesheets, images, fonts, etc.). Typically, data is fetched by the client from an API with client-side requests.
11+
Single Page Applications (SPAs) are web applications which are client-side rendered (CSR). They are often built with a framework such as [React](/workers/framework-guides/web-apps/react/), [Vue](/workers/framework-guides/web-apps/vue/) or [Svelte](/workers/framework-guides/web-apps/sveltekit/). The build process of these frameworks will produce a single `/index.html` file and accompanying client-side resources (e.g. JavaScript bundles, CSS stylesheets, images, fonts, etc.). Typically, data is fetched by the client from an API with client-side requests.
1212

1313
When you configure `single-page-application` mode, Cloudflare provides default routing behavior that automatically serves your `/index.html` file for navigation requests (those with `Sec-Fetch-Mode: navigate` headers) which don't match any other asset. For more control over which paths invoke your Worker script, you can use [advanced routing control](#advanced-routing-control).
1414

0 commit comments

Comments
 (0)