Skip to content

Commit

Permalink
feat: remove next-pwa, use PWA from nextjs docs (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
noelrohi authored Jan 1, 2025
1 parent 0bd78c2 commit e5dac54
Show file tree
Hide file tree
Showing 17 changed files with 72 additions and 3,658 deletions.
26 changes: 3 additions & 23 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,36 +1,16 @@
import "./src/env.mjs";
import nextPwa from "next-pwa";
import toolbar from "@vercel/toolbar/plugins/next"

const withPWA = nextPwa({
dest: "public",
});

/** @type {import("next").NextConfig} */
const config = {
/** ... */
logging: {
fetches: {
fullUrl: true,
}
},
},
images: {
formats: ['image/avif', 'image/webp'],
remotePatterns: [
{
protocol: 'https',
hostname: "s4.anilist.co",

},
{
protocol: 'https',
hostname: "artworks.thetvdb.com",

}
],
unoptimized: true,
},
};
const withVercelToolbar = toolbar();

export default process.env.NODE_ENV === "development" ? withVercelToolbar(config) : withVercelToolbar(withPWA(config));

export default config;
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"mini-svg-data-uri": "^1.4.4",
"next": "14.2.3",
"next-auth": "5.0.0-beta.16",
"next-pwa": "5.6.0",
"next-themes": "^0.3.0",
"posthog-js": "^1.135.0",
"react": "^18.2",
Expand Down
3,679 changes: 47 additions & 3,632 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

Binary file removed public/android-chrome-192x192.png
Binary file not shown.
Binary file removed public/android-chrome-512x512.png
Binary file not shown.
Binary file removed public/apple-touch-icon.png
Binary file not shown.
Binary file removed public/favicon-16x16.png
Binary file not shown.
Binary file removed public/favicon-32x32.png
Binary file not shown.
1 change: 0 additions & 1 deletion public/next.svg

This file was deleted.

1 change: 0 additions & 1 deletion public/vercel.svg

This file was deleted.

Binary file added public/web-app-manifest-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/web-app-manifest-512x512.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 src/app/apple-icon.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 modified src/app/favicon.ico
Binary file not shown.
Binary file added src/app/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/app/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions src/app/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "Anirohi",
"short_name": "Anirohi",
"icons": [
{
"src": "/web-app-manifest-192x192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "/web-app-manifest-512x512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
}
],
"theme_color": "#000000",
"background_color": "#000000",
"display": "standalone"
}

0 comments on commit e5dac54

Please sign in to comment.