🗾

Events in Tokyo

Page 2 of 5 • 6 events per page

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

Tech Workshop 7

5/13/2026 at 8:00 AM
Tokyo Convention Center Hall B
219 attending
$75
Meetup #8

Art Meetup 8

5/14/2026 at 9:00 PM
Tokyo Convention Center Hall C
245 attending
$66
Seminar #9

Music Seminar 9

5/15/2026 at 10:00 AM
Tokyo Convention Center Hall D
183 attending
Free
Concert #10

Food Concert 10

5/16/2026 at 11:00 PM
Tokyo Convention Center Hall E
212 attending
$46
Festival #11

Business Festival 11

5/17/2026 at 12:00 AM
Tokyo Convention Center Hall F
196 attending
$85
Conference #12

Health Conference 12

5/18/2026 at 1:00 PM
Tokyo Convention Center Hall A
124 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="2"

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>