🗾

Events in Tokyo

Page 3 of 5 • 6 events per page

Route: /events/tokyo/3
3
Current Page
6
Events Shown
30
Total Events
JST
Timezone
Workshop #13

Education Workshop 13

12/29/2025 at 2:00 AM
Tokyo Convention Center Hall B
248 attending
$78
Meetup #14

Tech Meetup 14

12/30/2025 at 3:00 PM
Tokyo Convention Center Hall C
140 attending
$33
Seminar #15

Art Seminar 15

12/31/2025 at 4:00 AM
Tokyo Convention Center Hall D
204 attending
Free
Concert #16

Music Concert 16

1/1/2026 at 5:00 PM
Tokyo Convention Center Hall E
113 attending
$58
Festival #17

Food Festival 17

1/2/2026 at 6:00 AM
Tokyo Convention Center Hall F
179 attending
$97
Conference #18

Business Conference 18

1/3/2026 at 7:00 PM
Tokyo Convention Center Hall A
245 attending
Free

Pagination Route Details

File path: /pages/events/[city]/[page].astro
Static paths: Pre-generated for 5 cities × 5 pages = 25 routes
Current params: city="tokyo", page="3"

Pagination Implementation

---
export function getStaticPaths() {
  const cities = ['san-francisco', 'new-york', 'london'];
  const maxPages = 5;

  return cities.flatMap(city => 
    Array.from({ length: maxPages }, (_, i) => ({
      params: { 
        city: city, 
        page: (i + 1).toString() 
      }
    }))
  );
}

const { city, page } = Astro.params;
const currentPage = parseInt(page || '1');
const events = getEventsForPage(city, currentPage);
---

<h1>Events in {city} - Page {currentPage}</h1>