Skip to content

Commit

Permalink
set revalidate down
Browse files Browse the repository at this point in the history
  • Loading branch information
lillijo committed Jul 5, 2024
1 parent 895ccbb commit 66c04f0
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/api/rest/caching.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const defaultFetchCacheOptions: RequestInit = {
next: { revalidate: 3600 },
next: { revalidate: 600 },
};
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const keys: ('formats' | 'faculties' | 'languages')[] = [
'languages',
];

export const revalidate = 3600;
export const revalidate = 600;

export default async function LandingFiltersGroupsSuspend() {
const items = await getFilteredGraphQLItems({});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const fetchers: {
{ translationKey: 'language', filtersKey: 'languages' },
];

export const revalidate = 3600;
export const revalidate = 600;

export default async function LandingFiltersGroups() {
const items = await getFilteredGraphQLItems({});
Expand Down
2 changes: 1 addition & 1 deletion src/app/[locale]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export async function generateMetadata({
};
}

export const revalidate = 3600;
export const revalidate = 600;

export default async function RootLayout({
children,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import MapComponent from './map';
import MapProviderContainer from './container';
import { LocationSummary } from '@/types/types';

export const revalidate = 3600;
export const revalidate = 600;
export default async function LocationsMap({
location,
}: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export type ProgramPageProps = {
searchParams: { [key: string]: string | undefined };
};

export const revalidate = 3600;
export const revalidate = 600;

export default async function ProgramPage({
place,
Expand Down
2 changes: 1 addition & 1 deletion src/app/[locale]/locations/[[...slug]]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type LocationsPageProps = {
params: { slug: string[] | undefined; locale: string };
};

export const revalidate = 360;
export const revalidate = 600;

export async function generateMetadata(
{ params: { locale, slug } }: LocationsPageProps,
Expand Down
2 changes: 1 addition & 1 deletion src/app/[locale]/program/components/sidebar/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export type ProgramSidebarProps = {
items: Item[];
};

export const revalidate = 3600;
export const revalidate = 600;

export default async function ProgramSidebar({
searchParams,
Expand Down
2 changes: 1 addition & 1 deletion src/app/[locale]/program/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export async function generateMetadata({
};
}

export const revalidate = 3600;
export const revalidate = 600;

export default async function Page({ searchParams }: ProgramPageProps) {
const items = await getFilteredGraphQLItems(searchParams);
Expand Down
2 changes: 1 addition & 1 deletion src/app/[locale]/saved/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export type SavedPageProps = {
params: { locale: string };
};

export const revalidate = 3600;
export const revalidate = 600;

export default async function Page({ params }: SavedPageProps) {
unstable_setRequestLocale(params.locale);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ type EventLocationProps = {
location: Context;
};

export const revalidate = 3600;
export const revalidate = 600;
export default async function EventLocation({ location }: EventLocationProps) {
const events = await getEventList(location.id);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import EventLocation from './eventLocation.server';
import EventContainer from '@/app/timeline/[[...slug]]/components/container/container';
import TimelineDays from '@/app/timeline/[[...slug]]/components/days/days';

export const revalidate = 3600;
export const revalidate = 600;
export default async function TimeTable() {
const items = await getEventLocations();

Expand Down

0 comments on commit 66c04f0

Please sign in to comment.