-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7fdd09f
commit 142bec3
Showing
18 changed files
with
6,243 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = { | ||
|
||
}; | ||
reactStrictMode: true, | ||
compiler: { | ||
removeConsole: process.env.NODE_ENV === 'production' | ||
} | ||
} | ||
|
||
export default nextConfig; | ||
export default nextConfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
'use client' | ||
|
||
import Link from 'next/link' | ||
import { Button } from '@wapijs/ui' | ||
import { ArrowPathIcon, ChatBubbleBottomCenterIcon } from '@heroicons/react/24/solid' | ||
|
||
export default function GlobalError({ | ||
reset, | ||
error | ||
}: { | ||
error: Error & { digest?: string } | ||
reset: () => void | ||
}) { | ||
console.log({ error: error, stack: error.stack }) | ||
return ( | ||
<div className="flex h-[70vh] min-h-screen flex-col items-center justify-center gap-4"> | ||
<h2 className="mx-auto text-center text-xl text-gray-900"> | ||
Oops! Something went wrong{' '} | ||
</h2> | ||
<div className="flex gap-4"> | ||
<Button onClick={() => reset()} size={'medium'}> | ||
<ArrowPathIcon className="h-6 w-6 text-white" /> Try again | ||
</Button> | ||
<Link title="contact-support" href={'/'} rel=""> | ||
<Button size={'medium'} variant={'outline'}> | ||
<ChatBubbleBottomCenterIcon className="h-6 w-6 text-white" /> Contact | ||
Support | ||
</Button> | ||
</Link> | ||
</div> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,6 +41,7 @@ | |
"devDependencies": { | ||
"@commitlint/cli": "^17.7.1", | ||
"@commitlint/config-conventional": "^17.7.0", | ||
"@microsoft/api-extractor": "^7.43.1", | ||
"@semantic-release/git": "^10.0.1", | ||
"@semantic-release/github": "^10.0.3", | ||
"@types/node": "^20.5.9", | ||
|
@@ -64,5 +65,10 @@ | |
"turbo": "^1.10.13", | ||
"typescript": "5.4.5" | ||
}, | ||
"packageManager": "[email protected]" | ||
"packageManager": "[email protected]", | ||
"pnpm": { | ||
"patchedDependencies": { | ||
"@microsoft/[email protected]": "patches/@[email protected]" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.