Skip to content

Commit

Permalink
clean before deploy (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabienheureux authored Aug 12, 2024
1 parent 7d075ad commit 728a15b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions gatsby-config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
require("dotenv").config({ path: `.env` });
import dotenv from 'dotenv';
dotenv.config({ path: `.env` });

module.exports = {
import type { GatsbyConfig } from 'gatsby';

const config: GatsbyConfig = {
siteMetadata: {
title: `Que Faire de mes Déchets ? Découvrez les solutions pour tous vos déchets et nos conseils pour en produire moins.`,
author: `Datagir`,
Expand Down Expand Up @@ -57,3 +60,6 @@ module.exports = {
"gatsby-plugin-webpack-bundle-analyser-v2",
],
};


export default config
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"webpack-cli": "^5.1.4"
},
"scripts": {
"build": " yarn iframe && gatsby build",
"build": "rm -rf ../cache && yarn cache clean && rm -rf node_modules && yarn install --frozen-lockfile && gatsby clean && yarn iframe && gatsby build",
"iframe": "webpack",
"develop": "gatsby develop",
"format": "prettier --write src/**/*.{js,jsx}",
Expand Down

0 comments on commit 728a15b

Please sign in to comment.