···154. go to `http://127.0.0.1:5179`
165. 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/'`)
0000000190000002021### or manually install in your own project
22···55566. 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/'`)
00000000000000596061## how to use
···154. go to `http://127.0.0.1:5179`
165. 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+ // ...
2627+ paths: {
28+ base: process.env.NODE_ENV === 'development' ? '' : '/svelte-atproto-client-oauth'
29+ }
30+ }
31+};
32+```
3334### or manually install in your own project
35···68696. 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+```
868788## how to use