aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages/_app.tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2023-12-16 17:31:12 +0100
committerArmand Philippot <git@armandphilippot.com>2023-12-16 19:43:40 +0100
commitbb2f79e09dd4776d611e4751ede1cbb43340fba0 (patch)
treec519128975c5e18c3657858eab2935a230a3228d /src/pages/_app.tsx
parentbc9a120b56494d5502de9619b79594653b8fd6e6 (diff)
fix(build): handle Next.js errors and warnings during build
* extract Blog component from BlogPage (paginated) and extract Article component from ArticlePage to avoid `Cannot read properties` errors due to fallback route * fix sitemap build (cjs not supported) * fix eslint warnings (react/jsx-no-literals) * update `start` script since I'm using standalone output * update `postbuild` script since we need to copy public and static files to standalone directory (Next.js does not handle it itself because we should use a CDN...)
Diffstat (limited to 'src/pages/_app.tsx')
-rw-r--r--src/pages/_app.tsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx
index 525335f..42b3de4 100644
--- a/src/pages/_app.tsx
+++ b/src/pages/_app.tsx
@@ -22,6 +22,7 @@ const App = ({ Component, pageProps }: AppPropsWithLayout) => {
domainId={CONFIG.ackee.siteId}
server={CONFIG.ackee.url}
storageKey={STORAGE_KEY.ACKEE}
+ // eslint-disable-next-line react/jsx-no-literals
tracking="full"
>
<MotionProvider