Skip to content

Commit

Permalink
chore : manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubinquitous committed Nov 15, 2024
1 parent da3d305 commit 26a636d
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 43 deletions.
30 changes: 30 additions & 0 deletions app/manifest.ts
Original file line number Diff line number Diff line change
@@ -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;
23 changes: 0 additions & 23 deletions app/manifest.webmanifest

This file was deleted.

37 changes: 17 additions & 20 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 26a636d

Please sign in to comment.