mirror of
https://github.com/LukeHagar/website.git
synced 2025-12-10 04:22:18 +00:00
fix: ssr tutorials
This commit is contained in:
@@ -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.
|
||||
@@ -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
|
||||
|
||||
@@ -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`
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user