Skip to content

Commit

Permalink
fix: Replace referents export URL by API export (#2244)
Browse files Browse the repository at this point in the history
  • Loading branch information
arturlg authored Mar 27, 2024
1 parent 6d0d8b0 commit 3c7f1c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions packages/app/src/app/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@ const referenteDownloadLink = {
text: "Télécharger la liste des référents Egapro - Dreets",
linkProps: {
title: "Télécharger la liste des référents au format xlsx",
href: "https://travail-emploi.gouv.fr/IMG/xlsx/referents_egalite_professionnelle-9-2.xlsx",
href: `${config.apiv2_url}/public/referents_egalite_professionnelle.xlsx`,
target: "_blank",
rel: "noreferrer",
},
} satisfies DsfrFooterProps.LinkList.Link;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@ import { type Any } from "@common/utils/types";
import { StatusCodes } from "http-status-codes";
import { NextResponse } from "next/server";

// Note: [revalidatePath bug](https://github.com/vercel/next.js/issues/49387). Try to reactivate it when it will be fixed in Next (it seems to be fixed in Next 14).
// export const revalidate = 86400; // 24h
export const revalidate = 86400; // 24h
export const dynamic = "force-dynamic";
// export const revalidate = 86_400; // 24h

export const GET: NextRouteHandler<"ext"> = async (_, { params: { ext } }) => {
const useCase = new ExportReferents(referentRepo);
Expand Down

0 comments on commit 3c7f1c4

Please sign in to comment.