Skip to content

Commit 492d3c8

Browse files
committed
⚙ chore(#168): next-pwa 설정을 pwa 키 아래로 변경
1 parent 01d4c40 commit 492d3c8

5 files changed

Lines changed: 63 additions & 5 deletions

File tree

next.config.mjs

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
import withPlugins from 'next-compose-plugins';
12
import withPWA from 'next-pwa';
3+
import typescript from 'next-plugin-graphql';
24

35
/** @type {import('next').NextConfig} */
46
const nextConfig = {
@@ -12,6 +14,24 @@ const nextConfig = {
1214
}
1315
};
1416

15-
export default withPWA({
16-
dest: 'public'
17-
})(nextConfig);
17+
export default withPlugins(
18+
[
19+
[
20+
withPWA,
21+
{
22+
pwa: {
23+
dest: 'public'
24+
}
25+
}
26+
],
27+
[
28+
typescript,
29+
{
30+
typescriptLoaderOptions: {
31+
transpileOnly: false
32+
}
33+
}
34+
]
35+
],
36+
nextConfig
37+
);

package-lock.json

Lines changed: 38 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
"framer-motion": "^11.4.0",
2121
"js-cookie": "^3.0.5",
2222
"next": "14.2.5",
23+
"next-compose-plugins": "^2.2.1",
24+
"next-plugin-graphql": "^0.0.2",
2325
"react": "^18",
2426
"react-beautiful-dnd": "^13.1.1",
2527
"react-dom": "^18",

public/sw.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

public/workbox-e43f5367.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)