diff --git a/.circleci/config.yml b/.circleci/config.yml index 1159510..e4a71cd 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -14,28 +14,28 @@ workflows: - pfe/gatsby-build-and-deploy: # trying to get the build to break with example.com data-source-url: "live-stevector-drupal.pantheonsite.io" + deployment-path: "nested-example/site" resource-class: "small" pre-steps: - pfe/set-terminus-env - post-steps: - run: name: post deployment completion status command: | - curl "https://api.github.com/repos/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}/statuses/$CIRCLE_SHA1" -H "Authorization: token $GITHUB_TOKEN" -X POST -d '{"state": "success", "context": "pantheon/deployment", "description": "Deployment complete", "target_url": "https://'${TERMINUS_ENV}'--'${TERMINUS_SITE}'.my.pantheonfrontend.website/"}' + curl "https://api.github.com/repos/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}/statuses/$CIRCLE_SHA1" -H "Authorization: token $GITHUB_TOKEN" -X POST -d '{"state": "success", "context": "pantheon/deployment", "description": "Deployment complete", "target_url": "https://'${TERMINUS_ENV}'--'${TERMINUS_SITE}'.my.pantheonfrontend.website/nested-example/site"}' - slack/notify: # image_url: "https://pantheon.io/sites/all/themes/zeus/images/pantheon-OG-backup.png" include_job_number_field: false include_visit_job_action: false title: "Pull Request $TERMINUS_ENV has been deployed" - title_link: "https://${TERMINUS_ENV}--${TERMINUS_SITE}.my.pantheonfrontend.website/" + title_link: "https://${TERMINUS_ENV}--${TERMINUS_SITE}.my.pantheonfrontend.website/nested-example/site" #channel: CHANNELID #color: '#42e2f4' #mentions: 'USERID1,USERID2,' message: "Preview your changes on Pantheon" orbs: - pfe: pantheon-systems/front-end@dev:selective-caching + pfe: pantheon-systems/front-end@dev:conditional-redirects-fix slack: circleci/slack@3.4.2 # pfe: stevector/pantheon-frontend@dev:orb-params diff --git a/gatsby-config.js b/gatsby-config.js index be75b39..0ecb9a0 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -1,6 +1,7 @@ const btoa = require("btoa") module.exports = { + pathPrefix: `/nested-example/site`, siteMetadata: { title: `Steve Persch's Blog`, description: `It's mostly just blog posts about Drupal`, @@ -65,7 +66,7 @@ module.exports = { options: { name: `gatsby-starter-default`, short_name: `starter`, - start_url: `/`, + start_url: `/nested-example/site`, background_color: `#663399`, theme_color: `#663399`, display: `minimal-ui`,