/spasov-me

Primary LanguageTypeScriptGNU General Public License v3.0GPL-3.0

Spasov.me home page

This is a Next.js project bootstrapped with create-next-app.

WARNING

January 2024: The package sharp 0.33.2 requires Node-API v9, including Node.js (^18.17.0 or >= 20.3.0), Deno and Bun. Unfortunately the versions of Node.js available on Vercel are not compatible with the lates version of this package. So we are still using sharp 0.32.6 for now.

Todo

  • taint
  • Create to do list?

Vercel CLI

Link the project to Vercel for local development

pnpm dlx vercel link
pnpm dlx vercel env pull

Or with npx:

npx vercel link
npx vercel env pull

Get the environment variables from Vercel, while the project is not linked to it.

export VERCEL_ENV_PULL_TOKEN=m1t...
export VERCEL_ORG_ID=team_...
export VERCEL_PROJECT_ID=prj_...

npx --yes -- vercel env pull --environment=production --yes --token $VERCEL_ENV_PULL_TOKEN .env.local
pnpm dlx vercel env pull --environment=production --yes --token $VERCEL_ENV_PULL_TOKEN .env.local

Next.js features to learn

Tech stack

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Inter, a custom Google Font.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

How do I use a Cloudflare domain with Vercel?

Docker

Rebuild and run the app with docker compose.

docker compose build && docker compose up -d

References:

Unified/Remark/Rehype

References:

Full backup

Backup of the database and Cloudflare's object storage.

# scripts/dump-mongo-db.sh .env.local
doppler run -- scripts/dump-mongo-db.sh
doppler run -- scripts/aws-shell/objStorage-metadata-dump.sh
doppler run -- scripts/aws-shell/objStorage-sync.sh
doppler run -- scripts/aws-shell/objStorage-copy.sh
doppler run -- pnpm exec tsx scripts/aws/index-copy-r2-minio.ts

This just stops working.

doppler run -- pnpm exec ts-node --skip-project scripts/aws/index-copy-r2-minio.ts

Notes

  • Liner gradient Google: linear-gradient(90deg,#ea473a 6%,#ffc619 38%,#4f8df5 70%,#19a261)