Skip to content

Commit

Permalink
[chore] pwa 적용 (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
choihooo authored Dec 15, 2024
1 parent 916afcf commit 0a741f2
Show file tree
Hide file tree
Showing 31 changed files with 4,122 additions and 60 deletions.
27 changes: 27 additions & 0 deletions fe/next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
const withPWA = require("next-pwa");
const {
PHASE_DEVELOPMENT_SERVER,
PHASE_PRODUCTION_BUILD,
} = require("next/constants");

/** @type {import("next").NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
};

module.exports = (phase) => {
if (phase === PHASE_DEVELOPMENT_SERVER || phase === PHASE_PRODUCTION_BUILD) {
return withPWA({
...nextConfig,
pwa: {
dest: "public",
disable: process.env.NODE_ENV === "development",
register: true,
skipWaiting: true,
},
});
}

return nextConfig;
};
6 changes: 0 additions & 6 deletions fe/next.config.mjs

This file was deleted.

Loading

0 comments on commit 0a741f2

Please sign in to comment.