Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove crisp chat #1623

Merged
merged 1 commit into from
Oct 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ PATH_STATIC_FILE=
GHOST_KEY=
NEXT_PUBLIC_GHOST_URL=https://ghost.adresse.data.gouv.fr
NEXT_PUBLIC_GHOST_URL_IMAGES_SOURCE=ghost.adresse.data.gouv.fr
NEXT_PUBLIC_CRISP_WEBSITE_ID=
NEXT_PUBLIC_BAL_ADMIN_API_URL=https://bal-admin.adresse.data.gouv.fr/api
NEXT_PUBLIC_BAL_API_URL=https://api-bal.adresse.data.gouv.fr/v1
NEXT_PUBLIC_MES_ADRESSES=https://mes-adresses.data.gouv.fr
14 changes: 0 additions & 14 deletions components/crisp-chat.js

This file was deleted.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
"compression": "^1.7.4",
"content-disposition": "^0.5.4",
"copy-to-clipboard": "^3.3.3",
"crisp-sdk-web": "^1.0.19",
"dotenv": "^16.0.3",
"express": "^4.18.2",
"filesize": "^10.0.12",
Expand Down
8 changes: 0 additions & 8 deletions pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import {useEffect} from 'react'
import PropTypes from 'prop-types'
import Head from 'next/head'
import Link from 'next/link'
import dynamic from 'next/dynamic'
import {createNextDsfrIntegrationApi} from '@codegouvfr/react-dsfr/next-pagesdir'
import {useIsDark} from '@codegouvfr/react-dsfr/useIsDark'
import {DeviceContextProvider} from '@/contexts/device'
Expand All @@ -14,12 +13,6 @@ import '@/styles/template-data-gouv-to-dsfr/main-alternate.css'
const MATOMO_URL = process.env.NEXT_PUBLIC_MATOMO_URL
const MATOMO_SITE_ID = process.env.NEXT_PUBLIC_MATOMO_SITE_ID

const CrispWithNoSSR = dynamic(
// eslint-disable-next-line node/no-unsupported-features/es-syntax
() => import('../components/crisp-chat'),
{ssr: false}
)

const {
withDsfr,
dsfrDocumentApi
Expand Down Expand Up @@ -49,7 +42,6 @@ function MyApp({Component, pageProps}) {
<DeviceContextProvider>
<div id='alert-root' />
<Component {...pageProps} />
<CrispWithNoSSR />
</DeviceContextProvider>
<style global jsx>{`
body,
Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3047,11 +3047,6 @@ cosmiconfig@^7.0.0:
path-type "^4.0.0"
yaml "^1.10.0"

crisp-sdk-web@^1.0.19:
version "1.0.19"
resolved "https://registry.yarnpkg.com/crisp-sdk-web/-/crisp-sdk-web-1.0.19.tgz#83213f18d4fbd1eb185eb3fbaffb948b7fdd99d5"
integrity sha512-kV/MyXVnQrVUwO9Stb7bUYr34BnslVhb5UZTUAa/qz1LvTrKtCBu5SYHyIYDiC29CHKrVXPenVyerpH/ZvuF/g==

cross-fetch@^3.1.5:
version "3.1.5"
resolved "https://registry.yarnpkg.com/cross-fetch/-/cross-fetch-3.1.5.tgz#e1389f44d9e7ba767907f7af8454787952ab534f"
Expand Down
Loading