-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from wajeshubham/dev
Configure manifest.json file for PWA support - Add pwa icons - configure next-pwa - Add _offline.tsx
- Loading branch information
Showing
12 changed files
with
1,693 additions
and
58 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
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,7 +1,12 @@ | ||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = { | ||
const withPWA = require("next-pwa")({ | ||
dest: "public", | ||
register: true, | ||
disable: process.env.NODE_ENV !== "production", | ||
skipWaiting: true, | ||
}); | ||
|
||
module.exports = withPWA({ | ||
// nextConfig | ||
reactStrictMode: true, | ||
output: "standalone", | ||
}; | ||
|
||
module.exports = 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
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,28 @@ | ||
import { ErrorText } from "@/components"; | ||
import Layout from "@/layout/Layout"; | ||
import { ExclamationTriangleIcon } from "@heroicons/react/24/outline"; | ||
import { useRouter } from "next/router"; | ||
import React from "react"; | ||
|
||
const OfflinePage = () => { | ||
const router = useRouter(); | ||
return ( | ||
<Layout> | ||
<div className="w-full py-32"> | ||
<ErrorText | ||
errorTitle="Looks like you are offline! :-(" | ||
ErrorIcon={ExclamationTriangleIcon} | ||
errorSubTitle="Check your network connection and try again!" | ||
errorActionProps={{ | ||
children: "Try again", | ||
onClick: () => { | ||
router.push("/"); | ||
}, | ||
}} | ||
/> | ||
</div> | ||
</Layout> | ||
); | ||
}; | ||
|
||
export default OfflinePage; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"name": "Snippng", | ||
"short_name": "Snippng", | ||
"description": "Create and share beautiful images of your source code.", | ||
"icons": [ | ||
{ | ||
"src": "/logo-192x192.png", | ||
"sizes": "192x192", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "/logo-256x256.png", | ||
"sizes": "256x256", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "/logo-512x512.png", | ||
"sizes": "512x512", | ||
"type": "image/png" | ||
} | ||
], | ||
"theme_color": "#121212", | ||
"background_color": "#121212", | ||
"scope": "/", | ||
"start_url": "/", | ||
"display": "standalone", | ||
"orientation": "portrait" | ||
} |
Oops, something went wrong.
9fab189
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
snippng – ./
snippng-wajeshubham.vercel.app
snippng.vercel.app
snippng-git-main-wajeshubham.vercel.app
snippng.wajeshubham.in