Skip to content

Commit

Permalink
Updates to Gatsby 5 (#431)
Browse files Browse the repository at this point in the history
* 426: Upgrades Gatsby to v5.

* 426: Updates graphql queries

* 426: Fixes missing author bio

* 426: Handle push error

* 426: Adds disk_quota

* 426: Fixes partytown issue

* 426: Updates outdated packages
  • Loading branch information
greensomes authored Oct 23, 2024
1 parent d489160 commit dcd82d0
Show file tree
Hide file tree
Showing 8 changed files with 2,521 additions and 2,630 deletions.
4 changes: 4 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ jobs:
steps:
- attach_workspace:
at: ~/project
- run:
name: Rename partytown directory
command: |
mv ~/project/public/~partytown ~/project/public/_partytown
- run:
name: Deploy to cloud.gov
command: |
Expand Down
10 changes: 8 additions & 2 deletions .circleci/scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ cf login -u "$CF_USERNAME" -p "$CF_PASSWORD" -a api.fr.cloud.gov -o "$CF_ORG" -s

cf push --strategy=rolling -f "$manifest"

echo "manifest $manifest successfully deployed."
exit_code=$?

exit 0
if [ $exit_code -ne 0 ]; then
echo "Error: cf push failed with exit code $exit_code"
exit $exit_code
else
echo "manifest $manifest successfully deployed."
exit 0
fi
6 changes: 3 additions & 3 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ module.exports = {
},
pathPrefix: `${BASEURL}/`,
mapping: {
"MarkdownRemark.frontmatter.authors": `AuthorYaml`,
"MarkdownRemark.frontmatter.authors": `AuthorYaml.yamlId`,
},
plugins: [
`gatsby-transformer-yaml`,
{
resolve: 'gatsby-plugin-google-tagmanager',
options: {
id: GTM_ID
}
},
`gatsby-transformer-yaml`,
{
resolve: `gatsby-source-filesystem`,
options: {
Expand Down Expand Up @@ -110,7 +110,7 @@ module.exports = {
},
query: `
{
allMarkdownRemark(sort: {fields: [frontmatter___date], order: DESC}) {
allMarkdownRemark(sort: {frontmatter: {date: DESC}}) {
edges {
node {
excerpt
Expand Down
5 changes: 1 addition & 4 deletions gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ exports.createPages = ({ graphql, actions }) => {
return graphql(
`
{
allMarkdownRemark(
sort: { fields: [frontmatter___date], order: DESC }
limit: 1000
) {
allMarkdownRemark(sort: {frontmatter: {date: DESC}}, limit: 1000) {
edges {
node {
fields {
Expand Down
Loading

0 comments on commit dcd82d0

Please sign in to comment.