Skip to content

Commit

Permalink
Merge pull request #79 from Funssion-SWM/develop
Browse files Browse the repository at this point in the history
pwa 적용
  • Loading branch information
dongree authored Dec 3, 2023
2 parents ced3bbe + 9ead6a5 commit b4d254d
Show file tree
Hide file tree
Showing 10 changed files with 3,041 additions and 128 deletions.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,12 @@ next-env.d.ts
.vscode
# Sentry Auth Token
.sentryclirc


#pwa
**/public/sw.js
**/public/workbox-*.js
**/public/worker-*.js
**/public/sw.js.map
**/public/workbox-*.js.map
**/public/worker-*.js.map
13 changes: 12 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
/** @type {import('next').NextConfig} */

const withPWA = require('next-pwa')({
dest: 'public',
});

const nextConfig = {
output: 'standalone',
experimental: {
Expand All @@ -7,9 +12,15 @@ const nextConfig = {
images: {
remotePatterns: [{ protocol: 'https', hostname: 'store.inforum.me' }],
},
reactStrictMode: true,
pwa: {
dest: 'public',
register: true,
skipWaiting: true,
},
};

module.exports = nextConfig;
module.exports = withPWA(nextConfig);

// Injected content via Sentry wizard below

Expand Down
3,112 changes: 2,985 additions & 127 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"lowlight": "2.4",
"lucide-react": "^0.259.0",
"next": "^13.2.4",
"next-pwa": "^5.6.0",
"openai-edge": "^1.2.2",
"postcss": "8.4.24",
"react": "^18.2.0",
Expand Down
Binary file added public/img/icon-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/icon-256x256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/icon-384x384.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/icon-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 31 additions & 0 deletions public/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"theme_color": "#4992FF",
"background_color": "#FFFFFF",
"display": "standalone",
"scope": "/",
"start_url": "https://www.inforum.me",
"name": "inforum",
"short_name": "inforum",
"icons": [
{
"src": "img/icon-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "img/icon-256x256.png",
"sizes": "256x256",
"type": "image/png"
},
{
"src": "img/icon-384x384.png",
"sizes": "384x384",
"type": "image/png"
},
{
"src": "img/icon-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
]
}
3 changes: 3 additions & 0 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ export default async function RootLayout({
}) {
return (
<html lang="ko" className={pretendard.className}>
<head>
<link rel="manifest" href="/manifest.json" />
</head>
<GoogleAnalytics />
<body className="flex flex-col">
<ToastProvider>
Expand Down

0 comments on commit b4d254d

Please sign in to comment.