diff --git a/.github/workflows/previewDeploy.yml b/.github/workflows/previewDeploy.yml index 9be75b8282..b1d9560d8f 100644 --- a/.github/workflows/previewDeploy.yml +++ b/.github/workflows/previewDeploy.yml @@ -32,7 +32,7 @@ jobs: GATSBY_ALGOLIA_APP_ID: ${{secrets.GATSBY_ALGOLIA_APP_ID}} GATSBY_ALGOLIA_ADMIN_API_KEY: ${{secrets.GATSBY_ALGOLIA_ADMIN_API_KEY}} FAUNADB_SERVER_SECRET: ${{secrets.FAUNADB_SERVER_SECRET}} - NETLIFY_ENV: develop + NETLIFY_ENV: deploy-preview run: | npm install npm run build diff --git a/gatsby-config.js b/gatsby-config.js index 2c72938deb..dc05e61677 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -40,12 +40,12 @@ module.exports = { // id: 'GTM-WK693R6', // }, // }, - // { - // resolve: 'gatsby-plugin-zopfli', - // options: { - // extensions: ['css', 'html', 'js', 'svg'], - // }, - // }, +// { +// resolve: 'gatsby-plugin-zopfli', +// options: { +// extensions: ['css', 'html', 'js', 'svg'], +// }, +// }, { resolve: 'gatsby-remark-copy-linked-files', }, @@ -154,9 +154,9 @@ module.exports = { options: { plugins: [ 'gatsby-remark-autolink-headers', - 'gatsby-remark-copy-linked-files', +// 'gatsby-remark-copy-linked-files', 'gatsby-remark-embed-youtube', - 'gatsby-remark-responsive-iframe', +// 'gatsby-remark-responsive-iframe', 'gatsby-plugin-twitter', 'gatsby-remark-slideshare', { @@ -312,13 +312,13 @@ module.exports = { options: { headers: { '/*.html': [ - 'cache-control: public, max-age=3600, must-revalidate', + 'cache-control: public, max-age=0, must-revalidate', ], '/*.json': [ - 'cache-control: public, max-age=3600, must-revalidate', + 'cache-control: public, max-age=0, must-revalidate', ], '/page-data/*': [ - 'cache-control: public, max-age=3600, must-revalidate', + 'cache-control: public, max-age=0, must-revalidate', ], '/static/*': [ 'cache-control: public, max-age=31536000, immutable',