Skip to content

Commit

Permalink
temp: dynamic hostels
Browse files Browse the repository at this point in the history
  • Loading branch information
heydoyouknowme0 committed Sep 28, 2024
1 parent b92a240 commit 8aa2014
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/[locale]/hostels/[url_name]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ import {
import { getTranslations } from '~/i18n/translations';
import { db, hostels } from '~/server/db';

export async function generateStaticParams() {
return await db.select({ url_name: hostels.urlName }).from(hostels);
}
export const dynamic = 'force-dynamic';

export default async function Hostel({
params: { locale, url_name },
Expand Down

0 comments on commit 8aa2014

Please sign in to comment.