-
-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(serverless): better 500/404 pages (#224)
* feat(serverless): better 500/404 pages * chore: add changeset
- Loading branch information
Showing
5 changed files
with
75 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@lagon/serverless': patch | ||
--- | ||
|
||
Improve 500/400 pages with proper HTML/CSS |
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,19 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<script src="https://cdn.tailwindcss.com"></script> | ||
<title>404 - Deployment Not Found</title> | ||
</head> | ||
|
||
<body> | ||
<section class="w-screen h-screen flex items-center justify-center flex-col"> | ||
<h1 class="font-semibold text-3xl text-gray-900 mb-1">Deployment Not Found</h1> | ||
<span class="uppercase text-base text-blue-500 mb-6">404</span> | ||
<p class="text-sm text-gray-800">This Deployment does not exist.</p> | ||
</section> | ||
</body> | ||
|
||
</html> |
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,22 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<script src="https://cdn.tailwindcss.com"></script> | ||
<title>500 - Function Error</title> | ||
</head> | ||
|
||
<body> | ||
<section class="w-screen h-screen flex items-center justify-center flex-col"> | ||
<h1 class="font-semibold text-3xl text-gray-900 mb-1">Function Error</h1> | ||
<span class="uppercase text-base text-blue-500 mb-6">500</span> | ||
<p class="text-sm text-gray-800"> | ||
This Function errored. If you are the owner, <br /> | ||
check the "Logs" tab for more information. | ||
</p> | ||
</section> | ||
</body> | ||
|
||
</html> |
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,19 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<script src="https://cdn.tailwindcss.com"></script> | ||
<title>502 - Function Resources Reached</title> | ||
</head> | ||
|
||
<body> | ||
<section class="w-screen h-screen flex items-center justify-center flex-col"> | ||
<h1 class="font-semibold text-3xl text-gray-900 mb-1">Function Resources Reached</h1> | ||
<span class="uppercase text-base text-blue-500 mb-6">502</span> | ||
<p class="text-sm text-gray-800">Resources have been reached for this Function.</p> | ||
</section> | ||
</body> | ||
|
||
</html> |
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