fix: ssr tutorials

This commit is contained in:
loks0n
2024-03-09 18:38:36 +01:00
parent edc736e3ec
commit fa4cd09cd4
19 changed files with 175 additions and 145 deletions

View File

@@ -14,7 +14,10 @@ If you're a Svelte developer, the examples in this guide show you how Appwrite c
# Before you start {% #before-you-start %}
Even if you've never tried Appwrite, you will get an idea of what it'll feel like to build with Svelte and Appwrite.
Before following this tutorial, have the following prepared:
- A recent version of [Node.js](https://nodejs.org/en/download/) installed on your system.
- A basic knowledge of Svelte and SvelteKit.
If you're inspired and wish to follow along, make sure you've followed [Start with Svelte](https://appwrite.io/docs/quick-starts/sveltekit) first.
Clone the [Demos for svelte](https://github.com/appwrite/demos-for-svelte) examples and follow along with the source code.

View File

@@ -36,7 +36,7 @@ create-svelte version 3.2.0
└ Your project is ready!
```
After the prompt is finished, you can head over to the newly create project.
After the prompt is finished, you can head over to the newly created project.
```sh
cd my-svelte-project

View File

@@ -15,7 +15,6 @@ To redirect, add a button to our sign in page that redirects the user to the OAu
<!-- ... existing sign in form -->
<form action="/oauth2" method="post">
<input type="hidden" name="provider" value="github" />
<button type="submit">Sign in with GitHub</button>
</form>
```
@@ -39,7 +38,7 @@ export const actions = {
const { account } = createAdminClient();
const redirectURL = account.createOAuth2Token(
OAuthProvider.GitHub,
OAuthProvider.Github,
`${event.url.origin}/oauth2`,
`${event.url.origin}/signin`
);