Update docs, change some dev-related stuff to look better in docs lol

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2026-01-05 19:34:45 +01:00
parent 9111519847
commit 0e9e39096c
11 changed files with 133 additions and 13 deletions

View File

@ -10,7 +10,7 @@
<script type="module">
import PlApiClient from './lib/client.ts';
window.client = PlApiClient;
window.PlApiClient = PlApiClient;
</script>
</body>
</html>

View File

@ -8,7 +8,7 @@ import { mimeSchema } from './utils';
*/
const blurhashSchema = v.pipe(v.string(), v.check(
(value) => isBlurhashValid(value).result,
'invalid blurhash', // .errorReason
'invalid blurhash',
));
const baseAttachmentSchema = v.object({

View File

@ -12,7 +12,8 @@
},
"scripts": {
"dev": "vite",
"build": "tsc --p ./tsconfig-build.json && vite build",
"build": "vite build",
"watch": "vite build --watch",
"preview": "vite preview",
"lint": "npx eslint --ext .js,.jsx,.cjs,.mjs,.ts,.tsx . --cache"
},

View File

@ -1,4 +0,0 @@
{
"extends": "./tsconfig.json",
"include": ["lib"]
}

View File

@ -20,5 +20,5 @@
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true
},
"include": ["src", "lib"]
"include": ["lib"]
}

View File

@ -21,4 +21,7 @@ export default defineConfig({
external: Object.keys(pkg.dependencies),
},
},
server: {
port: Number(process.env.PORT ?? 7313),
},
});

View File

@ -29,7 +29,7 @@ const config = defineConfig(({ command }) => ({
},
assetsInclude: ['**/*.oga'],
server: {
port: Number(process.env.PORT ?? 3036),
port: Number(process.env.PORT ?? 7312),
hmr: process.env.HMR_DISABLED === 'true' ? false : undefined,
},
plugins: [