simple atproto oauth for static svelte apps flo-bit.dev/svelte-atproto-client-oauth/

update readme

Florian 7f55cb60 e8e3b75f

+29 -2
+29 -2
README.md
··· 15 4. go to `http://127.0.0.1:5179` 16 5. for deployment change the `SITE_URL` variable in `src/lib/oauth/const.ts` 17 (e.g. for github pages: `https://your-username.github.io`) and set your base in `svelte.config.js` 18 - (e.g. for github pages: `base: '/your-repo-name/'`) 19 20 21 ### or manually install in your own project 22 ··· 55 56 6. for deployment change the `SITE_URL` variable in `src/lib/oauth/const.ts` 57 (e.g. for github pages: `https://your-username.github.io`) and set your base in `svelte.config.js` 58 - (e.g. for github pages: `base: '/your-repo-name/'`) 59 60 61 ## how to use
··· 15 4. go to `http://127.0.0.1:5179` 16 5. for deployment change the `SITE_URL` variable in `src/lib/oauth/const.ts` 17 (e.g. for github pages: `https://your-username.github.io`) and set your base in `svelte.config.js` 18 + (e.g. for github pages: `base: '/your-repo-name/'`) while keeping it as `''` in development. 19 + 20 + ``` 21 + const config = { 22 + // ... 23 + 24 + kit: { 25 + // ... 26 27 + paths: { 28 + base: process.env.NODE_ENV === 'development' ? '' : '/svelte-atproto-client-oauth' 29 + } 30 + } 31 + }; 32 + ``` 33 34 ### or manually install in your own project 35 ··· 68 69 6. for deployment change the `SITE_URL` variable in `src/lib/oauth/const.ts` 70 (e.g. for github pages: `https://your-username.github.io`) and set your base in `svelte.config.js` 71 + (e.g. for github pages: `base: '/your-repo-name/'`) while keeping it as `''` in development. 72 + 73 + ``` 74 + const config = { 75 + // ... 76 + 77 + kit: { 78 + // ... 79 + 80 + paths: { 81 + base: process.env.NODE_ENV === 'development' ? '' : '/svelte-atproto-client-oauth' 82 + } 83 + } 84 + }; 85 + ``` 86 87 88 ## how to use