Update instances list, fix script bug

This commit is contained in:
Lim Chee Aun 2024-02-15 17:53:35 +08:00
parent daabd85273
commit 2f0d04eca4
3 changed files with 544 additions and 509 deletions

View file

@ -104,7 +104,7 @@ Prerequisites: Node.js 18+
- `npm run build` - Build for production
- `npm run preview` - Preview the production build
- `npm run fetch-instances` - Fetch instances list from [instances.social](https://instances.social/), save it to `src/data/instances.json`
- requires `.env.dev` file with `INSTANCES_SOCIAL_SECRET_TOKEN` variable set
- requires `.env.local` file with `INSTANCES_SOCIAL_SECRET_TOKEN` variable set
- `npm run sourcemap` - Run `source-map-explorer` on the production build
## Tech stack

View file

@ -6,7 +6,7 @@
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"fetch-instances": "env $(cat .env.dev | grep -v \"#\" | xargs) node scripts/fetch-instances-list.js",
"fetch-instances": "env $(cat .env.local | grep -v \"#\" | xargs) node scripts/fetch-instances-list.js",
"sourcemap": "npx source-map-explorer dist/assets/*.js"
},
"dependencies": {

File diff suppressed because it is too large Load diff