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 15 4. go to `http://127.0.0.1:5179` 16 16 5. for deployment change the `SITE_URL` variable in `src/lib/oauth/const.ts` 17 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/'`) 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 + // ... 19 26 27 + paths: { 28 + base: process.env.NODE_ENV === 'development' ? '' : '/svelte-atproto-client-oauth' 29 + } 30 + } 31 + }; 32 + ``` 20 33 21 34 ### or manually install in your own project 22 35 ··· 55 68 56 69 6. for deployment change the `SITE_URL` variable in `src/lib/oauth/const.ts` 57 70 (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/'`) 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 + ``` 59 86 60 87 61 88 ## how to use