Skip to content

Commit

Permalink
fix preview site builds
Browse files Browse the repository at this point in the history
  • Loading branch information
kamijin-fanta committed Oct 16, 2022
1 parent a6a9905 commit fbfc64d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
5 changes: 4 additions & 1 deletion packages/preview/next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
/// <reference types="next" />
/// <reference types="next/types/global" />
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
13 changes: 6 additions & 7 deletions packages/preview/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@ const path = require("path");
const prod = process.env.NODE_ENV === "production";

module.exports = withPWA({
pwa: {
disable: !prod,
dest: "public",
register: true,
scope: "/",
runtimeCaching,
},
disable: !prod,
dest: "public",
register: true,
scope: "/",
runtimeCaching,
})({
experimental: {
publicDirectory: true,
},
Expand Down
3 changes: 2 additions & 1 deletion packages/preview/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"@pages/*": ["./src/pages/*"],
"@styles/*": ["./src/styles/*"],
"@utils/*": ["./src/utils/*"]
}
},
"incremental": true
},
"exclude": ["node_modules"],
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"]
Expand Down

0 comments on commit fbfc64d

Please sign in to comment.