🐛 Fix build static outputs (#1236)

This commit is contained in:
Carlos Cuesta 2022-12-22 21:11:07 +01:00 committed by GitHub
parent 6292bdb5d3
commit f5ee831dc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 12 deletions

16
.gitignore vendored
View File

@ -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

View File

@ -1,6 +1,6 @@
const withPWA = require('next-pwa')({
disable: process.env.NODE_ENV === 'development',
dest: 'public',
dest: './public',
})
module.exports = withPWA({

View File

@ -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"
},

View File

@ -14,7 +14,7 @@
"outputs": ["coverage/**"]
},
"build": {
"outputs": [".next/**"]
"outputs": ["packages/website/.next/**", "packages/website/public/**"]
},
"publishPackage": {
"outputs": []