Skip to content

Commit

Permalink
Use new public/_graphql/ subfolder location (#1222)
Browse files Browse the repository at this point in the history
* Use new public/_graphql/ subfolder location

Relies on silverstripe/silverstripe-graphql#385

* Rebase and build

Co-authored-by: Aaron Carlino <[email protected]>
  • Loading branch information
chillu and Aaron Carlino authored Nov 5, 2021
1 parent 9d18c53 commit ffe14c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/dist/js/bundle.js

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions client/src/boot/apollo/getGraphqlFragments.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ const getGraphqlFragments = async (baseUrl, preferStatic = true) => {
const isLegacy = !!document.body.getAttribute('data-graphql-legacy');
const legacyURLs = [
`${baseUrl}assets/admin.types.graphql`,
`${baseUrl}admin/graphql/types`
`${baseUrl}admin/graphql/types`,
`${baseUrl}admin.types.graphql`
];

let primaryURL;
Expand All @@ -37,7 +38,7 @@ const getGraphqlFragments = async (baseUrl, preferStatic = true) => {
}
[primaryURL, fallbackURL] = legacyURLs;
} else {
primaryURL = `${baseUrl}admin.types.graphql`;
primaryURL = `${baseUrl}/_graphql/admin.types.graphql`;
fallbackURL = null;
}

Expand Down

0 comments on commit ffe14c0

Please sign in to comment.