Skip to content

x3388638/pov

Repository files navigation

pov

A React (Next.js) app integrated with Contentful (headless CMS) collects car photography and POV driving videos to share the beauty of Taiwan.

img

Dev note

Env

node: v22.17.0
npm: v10.9.2

Run locally

npm ci --force
npm run dev

Build

npm run build

run the built version:

npm start

Lint

npm run lint

Update Contentful data to local

SPACE_ID={{SPACE ID}} ACCESS_TOKEN={{ACCESS TOKEN}} npm run contentful:fetch

Update sitemap

node sitemap.js

Deploy

The website is hosted on Vercel

  • push to any branch will trigger preview build for that branch
  • push to release branch will trigger production build

GitHub Actions

Cronjob: /.github/workflows/action.yml
It will fetch latest data from Contentful and generate sitemap list, and commit to release branch

Legacy version

Check the csr-version-2024-01 branch, which is a pure frontend app (CSR)

About

A React (Next.js) app integrated with Contentful (headless CMS) collects car photography and POV driving videos to share the beauty of Taiwan.

Resources

License

Stars

Watchers

Forks

Contributors