Skip to content
Source
Sign inSign up
fuko/trytanstackdb.com
Open History to see the last commit

DEVELOPMENT.md

34 lines812 Bytes

1WIP
2​
3# Deployment
4​
5Deploy the app with
6​
7```sh
8pnpm build && pnpm run deploy
9```
10​
11# DB
12​
13- Delete the indexedDB (in Firefox: `Storage`->`Indexed DB`) when the schema
14 changes
15- then: `pnpm db.generate`
16​
17# Errors
18​
19## `crypto.randomUUID is not a function. (In 'crypto.randomUUID()', 'crypto.randomUUID' is undefined)`
20​
21- this error appears when you run the app on the network and try to access it
22 through an address like `http://192.168.1.26:3542`
23- reason: the
24 [Web Crypto API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Crypto_API)
25 is only available in secure contexts.
26- Solve it by following these steps:
27 - use a local tunnel with a service like `ngrok`
28 - update the list of the enabled hosts in your `vite.config.ts` temporarily:
29​
30```typescript
31 server: {
32 allowedHosts: true,
33 },
34```