Skip to content

Commit e1d07a8

Browse files
thomasballingerConvex, Inc.
authored andcommitted
Minor Svelte quickstart updates (#38301)
GitOrigin-RevId: 254e9442b6106ee9c59d33e7fdc4fd2d7fbe781d
1 parent fabdeb7 commit e1d07a8

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

npm-packages/docs/docs/quickstart/svelte.mdx

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,19 @@ Learn how to query data from Convex in a Svelte app.
1515

1616
<StepByStep>
1717
<Step title="Create a SvelteKit app">
18-
Create a SvelteKit app using the `npx create svelte@latest` command.
18+
Create a SvelteKit app using the `npx sv create` command.
1919

20-
Other sets of options will work with the library as long as Svelte 5 is used but for this quickstart guide:
20+
Other sets of options will work with the library but for this quickstart guide:
2121

22-
- For "Which Svelte app template," choose **"Skeleton project."**
22+
- For "Which Svelte app template," choose **"SvelteKit minimal."**
23+
- For a package manager, choose **"npm."**
2324
- For "Add type checking with TypeScript," choose **"Yes, using TypeScript syntax."**
24-
- For "Select additional options," enable **"Try the Svelte 5 preview."**
25+
- For "Select additional options," you don't need to enable anything.
2526

2627
<br></br>
2728

2829
```sh
29-
npm create svelte@latest my-app
30+
npx sv@latest create my-app
3031
```
3132

3233
</Step>
@@ -56,7 +57,7 @@ Learn how to query data from Convex in a Svelte app.
5657
will prompt you to log in with GitHub,
5758
create a project, and save your production and deployment URLs.
5859

59-
It will also create a `convex/` folder for you
60+
It will also create a `src/convex/` folder for you
6061
to write your backend API functions in. The `dev` command
6162
will then continue running to sync your functions
6263
with your dev deployment in the cloud.
@@ -100,7 +101,7 @@ Learn how to query data from Convex in a Svelte app.
100101

101102
<Snippet
102103
source={tasks}
103-
title="convex/tasks.ts"
104+
title="src/convex/tasks.ts"
104105
/>
105106

106107
</Step>
@@ -121,7 +122,7 @@ Learn how to query data from Convex in a Svelte app.
121122

122123
<Snippet
123124
source={page}
124-
title="src/routes/page.tsx"
125+
title="src/routes/+page.svelte"
125126
jsExtension="js"
126127
/>
127128

0 commit comments

Comments
 (0)