build: 📦️ Update packages
This commit is contained in:
@ -166,7 +166,7 @@ export const CollaborationList = () => {
|
|||||||
size="sm"
|
size="sm"
|
||||||
colorScheme="blue"
|
colorScheme="blue"
|
||||||
isLoading={isSendingInvitation}
|
isLoading={isSendingInvitation}
|
||||||
flexShrink="0"
|
flexShrink={0}
|
||||||
type="submit"
|
type="submit"
|
||||||
>
|
>
|
||||||
Invite
|
Invite
|
||||||
|
@ -16,8 +16,8 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@chakra-ui/css-reset": "^1.1.3",
|
"@chakra-ui/css-reset": "^1.1.3",
|
||||||
"@chakra-ui/react": "^1.8.6",
|
"@chakra-ui/react": "^1.8.7",
|
||||||
"@codemirror/basic-setup": "^0.19.1",
|
"@codemirror/basic-setup": "^0.19.3",
|
||||||
"@codemirror/lang-css": "^0.19.3",
|
"@codemirror/lang-css": "^0.19.3",
|
||||||
"@codemirror/lang-html": "^0.19.4",
|
"@codemirror/lang-html": "^0.19.4",
|
||||||
"@codemirror/lang-javascript": "^0.19.7",
|
"@codemirror/lang-javascript": "^0.19.7",
|
||||||
@ -29,15 +29,14 @@
|
|||||||
"@giphy/js-types": "^4.1.0",
|
"@giphy/js-types": "^4.1.0",
|
||||||
"@giphy/react-components": "^5.6.1",
|
"@giphy/react-components": "^5.6.1",
|
||||||
"@googleapis/drive": "^2.3.0",
|
"@googleapis/drive": "^2.3.0",
|
||||||
"@next-auth/prisma-adapter": "1.0.1",
|
"@sentry/nextjs": "^6.19.3",
|
||||||
"@sentry/nextjs": "^6.18.2",
|
"@stripe/stripe-js": "^1.26.0",
|
||||||
"@stripe/stripe-js": "^1.24.0",
|
"@udecode/plate-basic-marks": "^10.5.0",
|
||||||
"@udecode/plate-basic-marks": "^10.2.2",
|
|
||||||
"@udecode/plate-common": "^7.0.2",
|
"@udecode/plate-common": "^7.0.2",
|
||||||
"@udecode/plate-core": "^10.2.2",
|
"@udecode/plate-core": "^10.5.0",
|
||||||
"@udecode/plate-link": "^10.2.2",
|
"@udecode/plate-link": "^10.5.0",
|
||||||
"@udecode/plate-ui-link": "^10.2.2",
|
"@udecode/plate-ui-link": "^10.5.0",
|
||||||
"@udecode/plate-ui-toolbar": "^10.2.2",
|
"@udecode/plate-ui-toolbar": "^10.5.0",
|
||||||
"bot-engine": "*",
|
"bot-engine": "*",
|
||||||
"browser-image-compression": "^1.0.17",
|
"browser-image-compression": "^1.0.17",
|
||||||
"canvas-confetti": "^1.5.1",
|
"canvas-confetti": "^1.5.1",
|
||||||
@ -47,65 +46,61 @@
|
|||||||
"dequal": "^2.0.2",
|
"dequal": "^2.0.2",
|
||||||
"emoji-mart": "^3.0.1",
|
"emoji-mart": "^3.0.1",
|
||||||
"focus-visible": "^5.2.0",
|
"focus-visible": "^5.2.0",
|
||||||
"framer-motion": "^4",
|
"framer-motion": "6.2.8",
|
||||||
"google-auth-library": "^7.14.0",
|
"google-auth-library": "^7.14.1",
|
||||||
"google-spreadsheet": "^3.2.0",
|
"google-spreadsheet": "^3.2.0",
|
||||||
"got": "^12.0.1",
|
"got": "^12.0.3",
|
||||||
"htmlparser2": "^7.2.0",
|
"htmlparser2": "^7.2.0",
|
||||||
"immer": "^9.0.12",
|
"immer": "^9.0.12",
|
||||||
"js-video-url-parser": "^0.5.1",
|
"js-video-url-parser": "^0.5.1",
|
||||||
"jsonwebtoken": "^8.5.1",
|
"jsonwebtoken": "^8.5.1",
|
||||||
"kbar": "^0.1.0-beta.30",
|
"kbar": "^0.1.0-beta.33",
|
||||||
"micro": "^9.3.4",
|
"micro": "^9.3.4",
|
||||||
"micro-cors": "^0.1.1",
|
"micro-cors": "^0.1.1",
|
||||||
"minio": "^7.0.26",
|
"minio": "^7.0.26",
|
||||||
"models": "*",
|
"models": "*",
|
||||||
"msw": "^0.36.8",
|
"next": "^12.1.4",
|
||||||
"next": "^12.1.0",
|
"next-auth": "4.3.1",
|
||||||
"next-auth": "4.2.1",
|
"nodemailer": "^6.7.3",
|
||||||
"nodemailer": "^6.7.2",
|
|
||||||
"nprogress": "^0.2.0",
|
"nprogress": "^0.2.0",
|
||||||
"papaparse": "^5.3.1",
|
"papaparse": "^5.3.2",
|
||||||
"prettier": "^2.5.1",
|
"prettier": "^2.6.1",
|
||||||
"qs": "^6.10.3",
|
|
||||||
"react": "^17.0.2",
|
"react": "^17.0.2",
|
||||||
"react-dom": "^17.0.2",
|
"react-dom": "^17.0.2",
|
||||||
"react-draggable": "^4.4.4",
|
"react-draggable": "^4.4.4",
|
||||||
"react-table": "^7.7.0",
|
"react-table": "^7.7.0",
|
||||||
"slate": "^0.73.1",
|
"slate": "^0.76.0",
|
||||||
"slate-history": "^0.66.0",
|
"slate-history": "^0.66.0",
|
||||||
"slate-hyperscript": "^0.67.0",
|
"slate-hyperscript": "^0.67.0",
|
||||||
"slate-react": "^0.74.2",
|
"slate-react": "^0.76.0",
|
||||||
"stripe": "^8.209.0",
|
"stripe": "^8.215.0",
|
||||||
"styled-components": "^5.3.3",
|
"styled-components": "^5.3.5",
|
||||||
"svg-round-corners": "^0.3.0",
|
"svg-round-corners": "^0.3.0",
|
||||||
"swr": "^1.2.2",
|
"swr": "^1.2.2",
|
||||||
"typebot-js": "*",
|
"typebot-js": "*",
|
||||||
"use-debounce": "^7.0.1",
|
"use-debounce": "^7.0.1",
|
||||||
"use-immer": "^0.6.0",
|
|
||||||
"utils": "*"
|
"utils": "*"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@playwright/test": "^1.19.2",
|
"@playwright/test": "^1.20.2",
|
||||||
"@types/canvas-confetti": "^1.4.2",
|
"@types/canvas-confetti": "^1.4.2",
|
||||||
"@types/emoji-mart": "^3.0.9",
|
"@types/emoji-mart": "^3.0.9",
|
||||||
"@types/google-spreadsheet": "^3.1.5",
|
"@types/google-spreadsheet": "^3.2.0",
|
||||||
"@types/jsonwebtoken": "8.5.8",
|
"@types/jsonwebtoken": "8.5.8",
|
||||||
"@types/micro-cors": "^0.1.2",
|
"@types/micro-cors": "^0.1.2",
|
||||||
"@types/minio": "^7.0.12",
|
"@types/minio": "^7.0.12",
|
||||||
"@types/node": "^17.0.21",
|
"@types/node": "^17.0.23",
|
||||||
"@types/nodemailer": "^6.4.4",
|
"@types/nodemailer": "^6.4.4",
|
||||||
"@types/nprogress": "^0.2.0",
|
"@types/nprogress": "^0.2.0",
|
||||||
"@types/papaparse": "^5.3.2",
|
"@types/papaparse": "^5.3.2",
|
||||||
"@types/prettier": "^2.4.4",
|
"@types/prettier": "^2.4.4",
|
||||||
"@types/qs": "^6.9.7",
|
"@types/react": "^17.0.43",
|
||||||
"@types/react": "^17.0.40",
|
"@types/react-table": "^7.7.10",
|
||||||
"@types/react-table": "^7.7.9",
|
"@typescript-eslint/eslint-plugin": "^5.17.0",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.14.0",
|
|
||||||
"dotenv": "^16.0.0",
|
"dotenv": "^16.0.0",
|
||||||
"eslint": "<8.0.0",
|
"eslint": "<8.0.0",
|
||||||
"eslint-config-next": "12.1.0",
|
"eslint-config-next": "12.1.4",
|
||||||
"next-transpile-modules": "^9.0.0",
|
"typescript": "^4.6.3",
|
||||||
"typescript": "^4.6.2"
|
"msw": "^0.39.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,17 @@
|
|||||||
import NextErrorComponent from 'next/error'
|
import NextErrorComponent from 'next/error'
|
||||||
|
|
||||||
import * as Sentry from '@sentry/nextjs'
|
import * as Sentry from '@sentry/nextjs'
|
||||||
|
import { NextPageContext } from 'next'
|
||||||
|
|
||||||
const MyError = ({ statusCode, hasGetInitialPropsRun, err }) => {
|
const MyError = ({
|
||||||
|
statusCode,
|
||||||
|
hasGetInitialPropsRun,
|
||||||
|
err,
|
||||||
|
}: {
|
||||||
|
statusCode: number
|
||||||
|
hasGetInitialPropsRun: boolean
|
||||||
|
err: Error
|
||||||
|
}) => {
|
||||||
if (!hasGetInitialPropsRun && err) {
|
if (!hasGetInitialPropsRun && err) {
|
||||||
// getInitialProps is not called in case of
|
// getInitialProps is not called in case of
|
||||||
// https://github.com/vercel/next.js/issues/8592. As a workaround, we pass
|
// https://github.com/vercel/next.js/issues/8592. As a workaround, we pass
|
||||||
@ -14,13 +23,15 @@ const MyError = ({ statusCode, hasGetInitialPropsRun, err }) => {
|
|||||||
return <NextErrorComponent statusCode={statusCode} />
|
return <NextErrorComponent statusCode={statusCode} />
|
||||||
}
|
}
|
||||||
|
|
||||||
MyError.getInitialProps = async (context) => {
|
MyError.getInitialProps = async (context: NextPageContext) => {
|
||||||
const errorInitialProps = await NextErrorComponent.getInitialProps(context)
|
const errorInitialProps = await NextErrorComponent.getInitialProps(context)
|
||||||
|
|
||||||
const { res, err, asPath } = context
|
const { res, err, asPath } = context
|
||||||
|
|
||||||
// Workaround for https://github.com/vercel/next.js/issues/8592, mark when
|
// Workaround for https://github.com/vercel/next.js/issues/8592, mark when
|
||||||
// getInitialProps has run
|
// getInitialProps has run
|
||||||
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||||
|
// @ts-ignore
|
||||||
errorInitialProps.hasGetInitialPropsRun = true
|
errorInitialProps.hasGetInitialPropsRun = true
|
||||||
|
|
||||||
// Returning early because we don't want to log 404 errors to Sentry.
|
// Returning early because we don't want to log 404 errors to Sentry.
|
@ -17,7 +17,9 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
|
|||||||
return res.status(404).send("Couldn't find credentials in database")
|
return res.status(404).send("Couldn't find credentials in database")
|
||||||
const response = await drive({
|
const response = await drive({
|
||||||
version: 'v3',
|
version: 'v3',
|
||||||
auth,
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||||
|
// @ts-ignore
|
||||||
|
auth: auth,
|
||||||
}).files.list({
|
}).files.list({
|
||||||
q: "mimeType='application/vnd.google-apps.spreadsheet'",
|
q: "mimeType='application/vnd.google-apps.spreadsheet'",
|
||||||
fields: 'nextPageToken, files(id, name)',
|
fields: 'nextPageToken, files(id, name)',
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { Box, Flex, HStack, Stack, Text } from '@chakra-ui/react'
|
import { Box, Flex, HStack, Stack, Text } from '@chakra-ui/react'
|
||||||
import * as React from 'react'
|
import * as React from 'react'
|
||||||
import Image from 'next/image'
|
import Image, { StaticImageData } from 'next/image'
|
||||||
import { QuoteLeftIcon } from 'assets/icons/QuoteLeftIcon'
|
import { QuoteLeftIcon } from 'assets/icons/QuoteLeftIcon'
|
||||||
|
|
||||||
interface TestimonialProps {
|
interface TestimonialProps {
|
||||||
|
@ -1,16 +0,0 @@
|
|||||||
const loadLandbot = (): Promise<void> =>
|
|
||||||
new Promise((resolve) => {
|
|
||||||
const existingScript = document.getElementById('landbot-lib')
|
|
||||||
if (!existingScript) {
|
|
||||||
const script = document.createElement('script')
|
|
||||||
script.src = 'https://static.landbot.io/landbot-3/landbot-3.0.0.js'
|
|
||||||
script.id = 'landbot-lib'
|
|
||||||
document.body.appendChild(script)
|
|
||||||
script.onload = () => {
|
|
||||||
resolve()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (existingScript) resolve()
|
|
||||||
})
|
|
||||||
|
|
||||||
export default loadLandbot
|
|
@ -1,62 +0,0 @@
|
|||||||
import { Client } from '@notionhq/client'
|
|
||||||
|
|
||||||
const notion = new Client({
|
|
||||||
auth: process.env.NOTION_API_TOKEN,
|
|
||||||
})
|
|
||||||
|
|
||||||
export const getDatabase = async (databaseId: string) => {
|
|
||||||
const response = await notion.databases.query({
|
|
||||||
database_id: databaseId,
|
|
||||||
sorts: [
|
|
||||||
{
|
|
||||||
property: 'Created',
|
|
||||||
direction: 'descending',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
filter: {
|
|
||||||
property: 'Published',
|
|
||||||
checkbox: {
|
|
||||||
equals: true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
return response.results
|
|
||||||
}
|
|
||||||
|
|
||||||
export const getFullDatabase = async (databaseId: string) => {
|
|
||||||
const response = await notion.databases.query({
|
|
||||||
database_id: databaseId,
|
|
||||||
sorts: [
|
|
||||||
{
|
|
||||||
property: 'Created',
|
|
||||||
direction: 'descending',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
})
|
|
||||||
return response.results
|
|
||||||
}
|
|
||||||
|
|
||||||
export const getPage = async (databaseId: string, slug: string) => {
|
|
||||||
const { results } = await notion.databases.query({
|
|
||||||
database_id: databaseId,
|
|
||||||
filter: {
|
|
||||||
property: 'Slug',
|
|
||||||
text: {
|
|
||||||
equals: slug,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
if (results.length === 0) return
|
|
||||||
const page_id = results.pop()?.id
|
|
||||||
if (!page_id) return
|
|
||||||
const response = await notion.pages.retrieve({ page_id })
|
|
||||||
return response
|
|
||||||
}
|
|
||||||
|
|
||||||
export const getBlocks = async (blockId: string) => {
|
|
||||||
const response = await notion.blocks.children.list({
|
|
||||||
block_id: blockId,
|
|
||||||
page_size: 50,
|
|
||||||
})
|
|
||||||
return response.results
|
|
||||||
}
|
|
@ -1,14 +0,0 @@
|
|||||||
const loadTypeform = (): Promise<void> =>
|
|
||||||
new Promise((resolve) => {
|
|
||||||
const existingScript = document.getElementById('typeform-lib')
|
|
||||||
if (!existingScript) {
|
|
||||||
const script = document.createElement('script')
|
|
||||||
script.innerHTML = `(function() { var qs,js,q,s,d=document, gi=d.getElementById, ce=d.createElement, gt=d.getElementsByTagName, id="typef_orm", b="https://embed.typeform.com/"; if(!gi.call(d,id)) { js=ce.call(d,"script"); js.id=id; js.src=b+"embed.js"; q=gt.call(d,"script")[0]; q.parentNode.insertBefore(js,q) } })()`
|
|
||||||
script.id = 'typeform-lib'
|
|
||||||
document.body.appendChild(script)
|
|
||||||
resolve()
|
|
||||||
}
|
|
||||||
if (existingScript) resolve()
|
|
||||||
})
|
|
||||||
|
|
||||||
export default loadTypeform
|
|
@ -8,33 +8,30 @@
|
|||||||
"analyze": "cross-env ANALYZE=true next build"
|
"analyze": "cross-env ANALYZE=true next build"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@chakra-ui/react": "^1.8.6",
|
"@chakra-ui/react": "^1.8.7",
|
||||||
"@emotion/react": "^11.8.2",
|
"@emotion/react": "^11.8.2",
|
||||||
"@emotion/styled": "^11.8.1",
|
"@emotion/styled": "^11.8.1",
|
||||||
"@notionhq/client": "^0.3.1",
|
|
||||||
"aos": "^2.3.4",
|
"aos": "^2.3.4",
|
||||||
"bot-engine": "*",
|
"bot-engine": "*",
|
||||||
"focus-visible": "^5.2.0",
|
"focus-visible": "^5.2.0",
|
||||||
"framer-motion": "^4",
|
"framer-motion": "^6.2.8",
|
||||||
"keen-slider": "^6.6.4",
|
"keen-slider": "^6.6.5",
|
||||||
"models": "*",
|
"models": "*",
|
||||||
"next": "^12.1.0",
|
"next": "^12.1.4",
|
||||||
"notion-blocks-chakra-ui": "^0.0.15",
|
|
||||||
"posthog-js": "1.17.9",
|
|
||||||
"react": "17.0.2",
|
"react": "17.0.2",
|
||||||
"react-dom": "17.0.2",
|
"react-dom": "17.0.2",
|
||||||
"typebot-js": "^2.1.3",
|
"typebot-js": "*",
|
||||||
"utils": "*"
|
"utils": "*"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@next/bundle-analyzer": "^12.1.0",
|
"@next/bundle-analyzer": "^12.1.4",
|
||||||
"@types/aos": "^3.0.4",
|
"@types/aos": "^3.0.4",
|
||||||
"@types/node": "^17.0.21",
|
"@types/node": "^17.0.23",
|
||||||
"@types/react": "^17.0.40",
|
"@types/react": "^17.0.43",
|
||||||
"autoprefixer": "^10.4.2",
|
"autoprefixer": "^10.4.4",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"eslint": "<8.0.0",
|
"eslint": "<8.0.0",
|
||||||
"prettier": "^2.5.1",
|
"prettier": "^2.6.1",
|
||||||
"typescript": "^4.6.2"
|
"typescript": "^4.6.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,6 @@ import { SocialMetaTags } from 'components/common/SocialMetaTags'
|
|||||||
import { BackgroundPolygons } from 'components/Homepage/Hero/BackgroundPolygons'
|
import { BackgroundPolygons } from 'components/Homepage/Hero/BackgroundPolygons'
|
||||||
import { PricingCard } from 'components/PricingPage/PricingCard'
|
import { PricingCard } from 'components/PricingPage/PricingCard'
|
||||||
import { ActionButton } from 'components/PricingPage/PricingCard/ActionButton'
|
import { ActionButton } from 'components/PricingPage/PricingCard/ActionButton'
|
||||||
import Head from 'next/head'
|
|
||||||
import { useEffect, useState } from 'react'
|
import { useEffect, useState } from 'react'
|
||||||
|
|
||||||
const Pricing = () => {
|
const Pricing = () => {
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
import React from 'react'
|
|
||||||
|
|
||||||
export const NotFoundPage = () => (
|
export const NotFoundPage = () => (
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
|
@ -12,33 +12,33 @@
|
|||||||
"test:open": "PWDEBUG=1 yarn playwright test"
|
"test:open": "PWDEBUG=1 yarn playwright test"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@sentry/nextjs": "^6.18.2",
|
"@sentry/nextjs": "^6.19.3",
|
||||||
"bot-engine": "*",
|
"bot-engine": "*",
|
||||||
"cors": "^2.8.5",
|
"cors": "^2.8.5",
|
||||||
"cuid": "^2.1.8",
|
"cuid": "^2.1.8",
|
||||||
"db": "*",
|
"db": "*",
|
||||||
"google-spreadsheet": "^3.2.0",
|
"google-spreadsheet": "^3.2.0",
|
||||||
"got": "^12.0.1",
|
"got": "^12.0.3",
|
||||||
"models": "*",
|
"models": "*",
|
||||||
"next": "^12.1.0",
|
"next": "^12.1.4",
|
||||||
"nodemailer": "^6.7.2",
|
"nodemailer": "^6.7.3",
|
||||||
"qs": "^6.10.3",
|
"qs": "^6.10.3",
|
||||||
|
"utils": "*",
|
||||||
"react": "^17.0.2",
|
"react": "^17.0.2",
|
||||||
"react-dom": "^17.0.2",
|
"react-dom": "^17.0.2"
|
||||||
"utils": "*"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@playwright/test": "^1.19.2",
|
"@playwright/test": "^1.20.2",
|
||||||
"@types/cors": "^2.8.12",
|
"@types/cors": "^2.8.12",
|
||||||
"@types/google-spreadsheet": "^3.1.5",
|
"@types/google-spreadsheet": "^3.2.0",
|
||||||
"@types/node": "^17.0.21",
|
"@types/node": "^17.0.23",
|
||||||
"@types/nodemailer": "^6.4.4",
|
"@types/nodemailer": "^6.4.4",
|
||||||
"@types/qs": "^6.9.7",
|
"@types/qs": "^6.9.7",
|
||||||
"@types/react": "^17.0.40",
|
"@types/react": "^17.0.43",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.14.0",
|
"@typescript-eslint/eslint-plugin": "^5.17.0",
|
||||||
"eslint": "<8.0.0",
|
"eslint": "<8.0.0",
|
||||||
"eslint-config-next": "12.1.0",
|
"eslint-config-next": "12.1.4",
|
||||||
"next-transpile-modules": "^9.0.0",
|
"next-transpile-modules": "^9.0.0",
|
||||||
"typescript": "^4.6.2"
|
"typescript": "^4.6.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
import React from 'react'
|
|
||||||
import { NotFoundPage } from '../layouts/NotFoundPage'
|
|
||||||
|
|
||||||
const NotFoundErrorPage = () => <NotFoundPage />
|
|
||||||
export default NotFoundErrorPage
|
|
@ -1,8 +1,17 @@
|
|||||||
import NextErrorComponent from 'next/error'
|
import NextErrorComponent from 'next/error'
|
||||||
|
|
||||||
import * as Sentry from '@sentry/nextjs'
|
import * as Sentry from '@sentry/nextjs'
|
||||||
|
import { NextPageContext } from 'next'
|
||||||
|
|
||||||
const MyError = ({ statusCode, hasGetInitialPropsRun, err }) => {
|
const MyError = ({
|
||||||
|
statusCode,
|
||||||
|
hasGetInitialPropsRun,
|
||||||
|
err,
|
||||||
|
}: {
|
||||||
|
statusCode: number
|
||||||
|
hasGetInitialPropsRun: boolean
|
||||||
|
err: Error
|
||||||
|
}) => {
|
||||||
if (!hasGetInitialPropsRun && err) {
|
if (!hasGetInitialPropsRun && err) {
|
||||||
// getInitialProps is not called in case of
|
// getInitialProps is not called in case of
|
||||||
// https://github.com/vercel/next.js/issues/8592. As a workaround, we pass
|
// https://github.com/vercel/next.js/issues/8592. As a workaround, we pass
|
||||||
@ -14,13 +23,15 @@ const MyError = ({ statusCode, hasGetInitialPropsRun, err }) => {
|
|||||||
return <NextErrorComponent statusCode={statusCode} />
|
return <NextErrorComponent statusCode={statusCode} />
|
||||||
}
|
}
|
||||||
|
|
||||||
MyError.getInitialProps = async (context) => {
|
MyError.getInitialProps = async (context: NextPageContext) => {
|
||||||
const errorInitialProps = await NextErrorComponent.getInitialProps(context)
|
const errorInitialProps = await NextErrorComponent.getInitialProps(context)
|
||||||
|
|
||||||
const { res, err, asPath } = context
|
const { res, err, asPath } = context
|
||||||
|
|
||||||
// Workaround for https://github.com/vercel/next.js/issues/8592, mark when
|
// Workaround for https://github.com/vercel/next.js/issues/8592, mark when
|
||||||
// getInitialProps has run
|
// getInitialProps has run
|
||||||
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||||
|
// @ts-ignore
|
||||||
errorInitialProps.hasGetInitialPropsRun = true
|
errorInitialProps.hasGetInitialPropsRun = true
|
||||||
|
|
||||||
// Returning early because we don't want to log 404 errors to Sentry.
|
// Returning early because we don't want to log 404 errors to Sentry.
|
@ -15,14 +15,9 @@
|
|||||||
"isolatedModules": true,
|
"isolatedModules": true,
|
||||||
"jsx": "preserve",
|
"jsx": "preserve",
|
||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"composite": true
|
"composite": true,
|
||||||
|
"downlevelIteration": true
|
||||||
},
|
},
|
||||||
"include": [
|
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
|
||||||
"next-env.d.ts",
|
|
||||||
"**/*.ts",
|
|
||||||
"**/*.tsx",
|
|
||||||
"pages/404.js",
|
|
||||||
"pages/_error.js"
|
|
||||||
],
|
|
||||||
"exclude": ["node_modules"]
|
"exclude": ["node_modules"]
|
||||||
}
|
}
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
"db:migrate": "yarn workspace db migration:deploy"
|
"db:migrate": "yarn workspace db migration:deploy"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"turbo": "^1.1.6"
|
"turbo": "^1.1.10"
|
||||||
},
|
},
|
||||||
"packageManager": "yarn@1.22.17"
|
"packageManager": "yarn@1.22.17"
|
||||||
}
|
}
|
||||||
|
@ -10,33 +10,33 @@
|
|||||||
"models": "*",
|
"models": "*",
|
||||||
"qs": "^6.10.3",
|
"qs": "^6.10.3",
|
||||||
"react-frame-component": "5.2.2-alpha.1",
|
"react-frame-component": "5.2.2-alpha.1",
|
||||||
"react-phone-number-input": "^3.1.46",
|
"react-phone-number-input": "^3.1.49",
|
||||||
"react-scroll": "^1.8.6",
|
"react-scroll": "^1.8.6",
|
||||||
"react-transition-group": "^4.4.2",
|
"react-transition-group": "^4.4.2",
|
||||||
"utils": "*"
|
"utils": "*"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@rollup/plugin-commonjs": "^21.0.2",
|
"@rollup/plugin-commonjs": "^21.0.3",
|
||||||
"@rollup/plugin-json": "^4.1.0",
|
"@rollup/plugin-json": "^4.1.0",
|
||||||
"@rollup/plugin-node-resolve": "^13.1.3",
|
"@rollup/plugin-node-resolve": "^13.1.3",
|
||||||
"@rollup/plugin-typescript": "^8.3.1",
|
"@rollup/plugin-typescript": "^8.3.1",
|
||||||
"@types/react": "^17.0.40",
|
"@types/react": "^17.0.43",
|
||||||
"@types/react-phone-number-input": "^3.0.13",
|
"@types/react-phone-number-input": "^3.0.13",
|
||||||
"@types/react-scroll": "^1.8.3",
|
"@types/react-scroll": "^1.8.3",
|
||||||
"@types/react-transition-group": "^4.4.4",
|
"@types/react-transition-group": "^4.4.4",
|
||||||
"autoprefixer": "^10.4.2",
|
"autoprefixer": "^10.4.4",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
"postcss": "^8.4.8",
|
"postcss": "^8.4.12",
|
||||||
"rollup": "^2.70.0",
|
"rollup": "^2.70.1",
|
||||||
"rollup-plugin-dts": "^4.2.0",
|
"rollup-plugin-dts": "^4.2.0",
|
||||||
"rollup-plugin-peer-deps-external": "^2.2.4",
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
||||||
"rollup-plugin-postcss": "^4.0.2",
|
"rollup-plugin-postcss": "^4.0.2",
|
||||||
"rollup-plugin-terser": "^7.0.2",
|
"rollup-plugin-terser": "^7.0.2",
|
||||||
"tailwindcss": "^3.0.23",
|
"tailwindcss": "^3.0.23",
|
||||||
"typescript": "^4.6.2",
|
"typescript": "^4.6.3",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.14.0",
|
"@typescript-eslint/eslint-plugin": "^5.17.0",
|
||||||
"eslint": "<8.0.0",
|
"eslint": "<8.0.0",
|
||||||
"eslint-config-next": "12.1.0",
|
"eslint-config-next": "12.1.4",
|
||||||
"eslint-config-prettier": "^8.5.0",
|
"eslint-config-prettier": "^8.5.0",
|
||||||
"eslint-plugin-prettier": "^4.0.0",
|
"eslint-plugin-prettier": "^4.0.0",
|
||||||
"tslib": "^2.3.1"
|
"tslib": "^2.3.1"
|
||||||
|
@ -5,13 +5,13 @@
|
|||||||
"main": "./index.ts",
|
"main": "./index.ts",
|
||||||
"types": "./index.ts",
|
"types": "./index.ts",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"prisma": "^3.10.0",
|
"prisma": "^3.11.1",
|
||||||
"ts-node": "^10.7.0",
|
"ts-node": "^10.7.0",
|
||||||
"typescript": "^4.6.2",
|
"typescript": "^4.6.3",
|
||||||
"dotenv-cli": "5.0.0"
|
"dotenv-cli": "5.1.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@prisma/client": "^3.10.0"
|
"@prisma/client": "^3.11.1"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dx": "dotenv -e ../../apps/builder/.env.local prisma db push && yarn generate:schema && yarn start:sutdio ",
|
"dx": "dotenv -e ../../apps/builder/.env.local prisma db push && yarn generate:schema && yarn start:sutdio ",
|
||||||
|
@ -6,10 +6,10 @@
|
|||||||
"license": "AGPL-3.0-or-later",
|
"license": "AGPL-3.0-or-later",
|
||||||
"private": true,
|
"private": true,
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"typescript": "^4.6.2"
|
"typescript": "^4.6.3"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"next": "^12.1.0",
|
"next": "^12.1.4",
|
||||||
"db": "*"
|
"db": "*"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -12,18 +12,18 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@rollup/plugin-typescript": "^8.3.1",
|
"@rollup/plugin-typescript": "^8.3.1",
|
||||||
"@types/jest": "^27.4.1",
|
"@types/jest": "^27.4.1",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.14.0",
|
"@typescript-eslint/eslint-plugin": "^5.17.0",
|
||||||
"@typescript-eslint/parser": "^5.14.0",
|
"@typescript-eslint/parser": "^5.17.0",
|
||||||
"eslint": "<8.0.0",
|
"eslint": "<8.0.0",
|
||||||
"eslint-plugin-functional": "^4.2.0",
|
"eslint-plugin-functional": "^4.2.0",
|
||||||
"eslint-plugin-jest": "^26.1.1",
|
"eslint-plugin-jest": "^26.1.3",
|
||||||
"eslint-plugin-prettier": "^4.0.0",
|
"eslint-plugin-prettier": "^4.0.0",
|
||||||
"jest": "^27.5.1",
|
"jest": "^27.5.1",
|
||||||
"rollup": "^2.70.0",
|
"rollup": "^2.70.1",
|
||||||
"rollup-plugin-styles": "^4.0.0",
|
"rollup-plugin-styles": "^4.0.0",
|
||||||
"rollup-plugin-terser": "^7.0.2",
|
"rollup-plugin-terser": "^7.0.2",
|
||||||
"ts-jest": "^27.1.3",
|
"ts-jest": "^27.1.4",
|
||||||
"ts-loader": "^9.2.8",
|
"ts-loader": "^9.2.8",
|
||||||
"typescript": "^4.6.2"
|
"typescript": "^4.6.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,18 +7,18 @@
|
|||||||
"module": "dist/esm/index.js",
|
"module": "dist/esm/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@rollup/plugin-commonjs": "^21.0.2",
|
"@rollup/plugin-commonjs": "^21.0.3",
|
||||||
"@rollup/plugin-node-resolve": "^13.1.3",
|
"@rollup/plugin-node-resolve": "^13.1.3",
|
||||||
"@rollup/plugin-typescript": "^8.3.1",
|
"@rollup/plugin-typescript": "^8.3.1",
|
||||||
"rollup": "^2.70.0",
|
"rollup": "^2.70.1",
|
||||||
"rollup-plugin-dts": "^4.2.0",
|
"rollup-plugin-dts": "^4.2.0",
|
||||||
"rollup-plugin-peer-deps-external": "^2.2.4",
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
||||||
"tslib": "^2.3.1",
|
"tslib": "^2.3.1",
|
||||||
"typescript": "^4.6.2"
|
"typescript": "^4.6.3"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"models": "*",
|
"models": "*",
|
||||||
"next": "^12.1.0"
|
"next": "^12.1.4"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "yarn rollup -c",
|
"build": "yarn rollup -c",
|
||||||
|
Reference in New Issue
Block a user