diff options
| author | Armand Philippot <git@armandphilippot.com> | 2023-12-16 17:31:12 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2023-12-16 19:43:40 +0100 |
| commit | bb2f79e09dd4776d611e4751ede1cbb43340fba0 (patch) | |
| tree | c519128975c5e18c3657858eab2935a230a3228d /src/components/organisms/forms | |
| parent | bc9a120b56494d5502de9619b79594653b8fd6e6 (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/components/organisms/forms')
| -rw-r--r-- | src/components/organisms/forms/search-form/search-form.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/components/organisms/forms/search-form/search-form.tsx b/src/components/organisms/forms/search-form/search-form.tsx index a803d8c..eb4f51d 100644 --- a/src/components/organisms/forms/search-form/search-form.tsx +++ b/src/components/organisms/forms/search-form/search-form.tsx @@ -124,7 +124,11 @@ const SearchFormWithRef: ForwardRefRenderFunction< </Button> </Form> {messages?.error && submitStatus === 'FAILED' ? ( - <Notice className={styles.notice} kind="error"> + <Notice + className={styles.notice} + // eslint-disable-next-line react/jsx-no-literals + kind="error" + > {messages.error} </Notice> ) : null} |
