From 26a636d58e6ca388c950a198276a7af2486c66b3 Mon Sep 17 00:00:00 2001 From: ubinquitous Date: Sat, 16 Nov 2024 01:19:32 +0900 Subject: [PATCH] chore : manifest --- app/manifest.ts | 30 ++++++++++++++++++++++++++++++ app/manifest.webmanifest | 23 ----------------------- next.config.mjs | 37 +++++++++++++++++-------------------- 3 files changed, 47 insertions(+), 43 deletions(-) create mode 100644 app/manifest.ts delete mode 100644 app/manifest.webmanifest diff --git a/app/manifest.ts b/app/manifest.ts new file mode 100644 index 00000000..894476e8 --- /dev/null +++ b/app/manifest.ts @@ -0,0 +1,30 @@ +import type { MetadataRoute } from "next"; + +const manifest: () => MetadataRoute.Manifest = () => { + const titleText = "부마위키"; + const descriptionText = "여러분이 가꾸어 나가는 역사의 고서"; + + return { + name: titleText, + short_name: titleText, + description: descriptionText, + start_url: "/", + display: "standalone", + background_color: "#ffffff", + theme_color: "#274168", + icons: [ + { + src: "/icon512_rounded.png", + sizes: "192x192", + type: "image/png", + }, + { + src: "/icon512_rounded.png", + sizes: "512x512", + type: "image/png", + }, + ], + }; +}; + +export default manifest; diff --git a/app/manifest.webmanifest b/app/manifest.webmanifest deleted file mode 100644 index a6e989c2..00000000 --- a/app/manifest.webmanifest +++ /dev/null @@ -1,23 +0,0 @@ -{ - "theme_color": "#274168", - "background_color": "#ffffff", - "icons": [ - { - "purpose": "maskable", - "sizes": "512x512", - "src": "icon512_maskable.png", - "type": "image/png" - }, - { "purpose": "any", "sizes": "512x512", "src": "icon512_rounded.png", "type": "image/png" } - ], - "orientation": "any", - "display": "standalone", - "dir": "auto", - "lang": "ko-KR", - "name": "부마위키", - "short_name": "부마위키", - "start_url": "https://buma.wiki", - "scope": "https://buma.wiki", - "description": "부산소마고의 역사를 담은 위키", - "id": "https://buma.wiki" -} diff --git a/next.config.mjs b/next.config.mjs index ff61b2f0..10e69d24 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,29 +1,26 @@ import { createVanillaExtractPlugin } from "@vanilla-extract/next-plugin"; -import withPWA from "next-pwa"; const withVanillaExtract = createVanillaExtractPlugin({ identifiers: ({ hash }) => `bumawiki_${hash}`, }); /** @type {import('next').NextConfig} */ -const nextConfig = withPWA( - withVanillaExtract({ - swcMinify: true, - images: { - domains: [ - "bumawiki.kro.kr", - "lh3.googleusercontent.com", - "media.tenor.com", - "ifh.cc", - "velog.velcdn.com", - "bumawiki.s3.ap-northeast-2.amazonaws.com", - "cdn.discordapp.com", - "previews.123rf.com", - "yt3.googleusercontent.com", - "raw.githubusercontent.com", - ], - }, - }), -); +const nextConfig = withVanillaExtract({ + swcMinify: true, + images: { + domains: [ + "bumawiki.kro.kr", + "lh3.googleusercontent.com", + "media.tenor.com", + "ifh.cc", + "velog.velcdn.com", + "bumawiki.s3.ap-northeast-2.amazonaws.com", + "cdn.discordapp.com", + "previews.123rf.com", + "yt3.googleusercontent.com", + "raw.githubusercontent.com", + ], + }, +}); export default nextConfig;