Skip to content

Commit

Permalink
πŸ› Fix build static outputs (carloscuesta#1236)
Browse files Browse the repository at this point in the history
  • Loading branch information
carloscuesta committed Dec 22, 2022
1 parent 6292bdb commit 400ec32
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
16 changes: 8 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ coverage/
!.yarn/versions

# next-pwa
public/workbox-*.js
public/workbox-*.js
public/sw.js
public/sw.js
public/*.map
packages/website/public/workbox-*.js
packages/website/public/workbox-*.js
packages/website/public/sw.js
packages/website/public/sw.js
packages/website/public/*.map

# next-sitemap
public/robots.txt
public/sitemap.xml
public/sitemap.xml
packages/website/public/robots.txt
packages/website/public/sitemap.xml
packages/website/public/sitemap-*.xml
2 changes: 1 addition & 1 deletion packages/website/next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const withPWA = require('next-pwa')({
disable: process.env.NODE_ENV === 'development',
dest: 'public',
dest: './public',
})

module.exports = withPWA({
Expand Down
3 changes: 1 addition & 2 deletions packages/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@
"node": "16"
},
"scripts": {
"build": "next build",
"build": "next build && next-sitemap",
"dev": "next dev",
"flow": "flow",
"lint": "eslint ./src && prettier --check ./src/**/*.{js,css}",
"postbuild": "next-sitemap",
"start": "next start",
"test": "FORCE_COLOR=1 jest --coverage"
},
Expand Down
2 changes: 1 addition & 1 deletion turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"outputs": ["coverage/**"]
},
"build": {
"outputs": [".next/**"]
"outputs": ["packages/website/.next/**", "packages/website/public/**"]
},
"publishPackage": {
"outputs": []
Expand Down

0 comments on commit 400ec32

Please sign in to comment.