Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit e3dc26e

Browse files
committed
fix: csp config
1 parent 3d1959c commit e3dc26e

9 files changed

+19
-16
lines changed

next-seo.config.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import ContentSecurityPolicy from "./csp.config";
22

3-
export default {
3+
const DEFAULT_SEO_CONFIG = {
44
additionalLinkTags: [
55
{
66
rel: "icon",
@@ -14,3 +14,5 @@ export default {
1414
},
1515
],
1616
};
17+
18+
export default DEFAULT_SEO_CONFIG;

src/components/landing/tile.stories.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React from "react";
22
import { ComponentStory, ComponentMeta } from "@storybook/react";
3-
import { Testimonial } from "./testimonial";
43
import { Tile } from "./tile";
54

65
export default {

src/pages/_app.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import "@gouvfr/dsfr/dist/dsfr/dsfr.min.css";
2-
import "../../next-seo.config";
32
import type { AppProps } from "next/app";
3+
import SEO from "../../next-seo.config";
44
import { Layout } from "@components";
55
import {
66
footerBodySection,
@@ -11,6 +11,7 @@ import {
1111
} from "@config";
1212
import { useEffect } from "react";
1313
import { init } from "@socialgouv/matomo-next";
14+
import { DefaultSeo } from "next-seo";
1415

1516
function MyApp({ Component, pageProps }: AppProps) {
1617
useEffect(() => {
@@ -30,6 +31,7 @@ function MyApp({ Component, pageProps }: AppProps) {
3031
topSection: footerTopSection,
3132
}}
3233
>
34+
<DefaultSeo {...(SEO as any)} />
3335
<Component {...pageProps} />
3436
</Layout>
3537
);

src/pages/cgu.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { MentionPart } from "@components";
22
import type { NextPage } from "next";
3-
import { DefaultSeo } from "next-seo";
3+
import { NextSeo } from "next-seo";
44
import React from "react";
55

66
const Cgu: NextPage = () => {
77
return (
88
<>
9-
<DefaultSeo
9+
<NextSeo
1010
title="Template | Conditions générales d'utilisation"
1111
description="Conditions générales d'utilisation de l'application template."
1212
additionalLinkTags={[
@@ -22,7 +22,7 @@ const Cgu: NextPage = () => {
2222
},
2323
{
2424
name: "application-name",
25-
content: "DefaultSeo",
25+
content: "NextSeo",
2626
},
2727
{
2828
httpEquiv: "x-ua-compatible",

src/pages/healthz.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import type { NextPage } from "next";
2-
import { DefaultSeo } from "next-seo";
2+
import { NextSeo } from "next-seo";
33
import React from "react";
44

55
const HealthZ: NextPage = () => {
66
return (
77
<>
8-
<DefaultSeo
8+
<NextSeo
99
title="Template | HealthZ"
1010
description="Page healthZ de l'application Template."
1111
additionalLinkTags={[

src/pages/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { Head, Testimonial, Tile } from "@components";
22
import { Row } from "@dataesr/react-dsfr";
33
import type { NextPage } from "next";
4-
import { DefaultSeo } from "next-seo";
4+
import { NextSeo } from "next-seo";
55

66
const Index: NextPage = () => {
77
return (
88
<>
9-
<DefaultSeo
9+
<NextSeo
1010
title="Template"
1111
description="Template de la fabrique des ministères sociaux."
1212
additionalLinkTags={[

src/pages/mention-legales.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { MentionPart } from "@components";
22
import { Title } from "@dataesr/react-dsfr";
33
import type { NextPage } from "next";
4-
import { DefaultSeo } from "next-seo";
4+
import { NextSeo } from "next-seo";
55
import React from "react";
66

77
const LegalMention: NextPage = () => {
88
return (
99
<>
10-
<DefaultSeo
10+
<NextSeo
1111
title="Template | Mention légales"
1212
description="Mentions légales de l'application template."
1313
additionalLinkTags={[

src/pages/politique-confidentialite.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Table } from "@dataesr/react-dsfr";
22
import type { NextPage } from "next";
3-
import { DefaultSeo } from "next-seo";
3+
import { NextSeo } from "next-seo";
44
import React from "react";
55

66
const URL = [
@@ -13,7 +13,7 @@ const URL = [
1313
const Confidentiality: NextPage = () => {
1414
return (
1515
<>
16-
<DefaultSeo
16+
<NextSeo
1717
title="Template | Politique de confidentialité"
1818
description="Politique de confidentialité de l'application template."
1919
additionalLinkTags={[

src/pages/stats.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { StatsTile } from "@components";
22
import { fetchMatomoData, MatomoResult } from "@lib";
33
import type { NextPage } from "next";
4-
import { DefaultSeo } from "next-seo";
4+
import { NextSeo } from "next-seo";
55
import React, { useEffect } from "react";
66

77
const Stats: NextPage = () => {
@@ -19,7 +19,7 @@ const Stats: NextPage = () => {
1919
}, []);
2020
return (
2121
<>
22-
<DefaultSeo
22+
<NextSeo
2323
title="Template | Statistiques d'utilisation"
2424
description="Statistiques d'utilisation de l'application template."
2525
additionalLinkTags={[

0 commit comments

Comments
 (0)