This is a Next.js project bootstrapped with create-next-app
.
First, add an environment variable PRIVATE_CALENDAR_URL for the calendar ics url, to fetch the list of events. This is best achieved by creating a .env.local
file and putting the value in there.
Second, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
It's safer to serve images locally. Avoiding CORS issues and privacy blockers.
To download images and use their local paths, run:
npx ts-node scripts/downloadAvatars.mts app/resources/[FILENAME]].json
Open http://localhost:3000 with your browser to see the result.