🗾
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
12/23/2025 at 8:00 AM
Tokyo Convention Center Hall B
156 attending
$49 Meetup
#8
Art Meetup 8
12/24/2025 at 9:00 PM
Tokyo Convention Center Hall C
163 attending
$111 Seminar
#9
Music Seminar 9
12/25/2025 at 10:00 AM
Tokyo Convention Center Hall D
159 attending
Free Concert
#10
Food Concert 10
12/26/2025 at 11:00 PM
Tokyo Convention Center Hall E
130 attending
$67 Festival
#11
Business Festival 11
12/27/2025 at 12:00 AM
Tokyo Convention Center Hall F
214 attending
$98 Conference
#12
Health Conference 12
12/28/2025 at 1:00 PM
Tokyo Convention Center Hall A
77 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>