Verified Commit 2f017065 authored by Sandro Lutz's avatar Sandro Lutz
Browse files

Fix compression for production

parent db817323
Pipeline #58030 failed with stages
in 11 minutes and 21 seconds
......@@ -114,11 +114,10 @@ module.exports = {
},
},
{
resolve: `gatsby-plugin-compression-v2`,
resolve: 'gatsby-plugin-zopfli',
options: {
asset: '[path].gz[query]',
algorithm: 'gzip',
},
extensions: ['css', 'html', 'js', 'svg']
}
},
`gatsby-plugin-sitemap`,
{
......
......@@ -12,8 +12,8 @@ server {
error_page 404 /en/404/index.html;
sendfile on;
gzip_static on;
gunzip on;
location = /sw.js {
# Do not allow caching of service worker.
......@@ -43,8 +43,4 @@ server {
error_page 404 /en/404/index.html;
try_files $uri $uri/index.html =404;
}
# location ~* ^/(en|de)/(events|jobs|studydocuments) {
# try_files $uri /$1/events/index.html
# }
}
......@@ -2229,6 +2229,14 @@
"resolved": "https://registry.npmjs.org/@formatjs/macro/-/macro-0.2.6.tgz",
"integrity": "sha512-DfdnLJf8+PwLHzJECZ1Xfa8+sI9akQnUuLN2UdkaExTQmlY0Vs36rMzEP0JoVDBMk+KdQbJNt72rPeZkBNcKWg=="
},
"@gfx/zopfli": {
"version": "1.0.14",
"resolved": "https://registry.npmjs.org/@gfx/zopfli/-/zopfli-1.0.14.tgz",
"integrity": "sha512-3BuC4gWCvNz5fd2VdVSOQegtv1lTGT8DUTuqvE6M16uAjgBod+vhHCXTlKMtZA4s2+z3IDAgQm/k3RkhYNodiA==",
"requires": {
"base64-js": "^1.3.0"
}
},
"@hapi/address": {
"version": "2.1.4",
"resolved": "https://registry.npmjs.org/@hapi/address/-/address-2.1.4.tgz",
......@@ -9860,6 +9868,17 @@
"webpack-bundle-analyzer": "^3.6.0"
}
},
"gatsby-plugin-zopfli": {
"version": "1.3.2",
"resolved": "https://registry.npmjs.org/gatsby-plugin-zopfli/-/gatsby-plugin-zopfli-1.3.2.tgz",
"integrity": "sha512-sJX1UKWxDYxUzfMqPWok1+hlBnjUSConWhbBytR5Tie9v9xaYkjSY5nk8/alrlIgIVun/OEw+iMDpne9+Bu20w==",
"requires": {
"@gfx/zopfli": "^1.0.14",
"glob": "^7.1.4",
"mkdirp": "^0.5.1",
"worker-farm": "^1.7.0"
}
},
"gatsby-react-router-scroll": {
"version": "2.1.21",
"resolved": "https://registry.npmjs.org/gatsby-react-router-scroll/-/gatsby-react-router-scroll-2.1.21.tgz",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment