Skip to content

Commit

Permalink
update prismic config regex to tolerate /graphql
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudlewis committed Apr 24, 2019
1 parent 65a1447 commit 45d3191
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/repository.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ async function readZipAndCreateRepoWithCustomTypes(newRepository, base, domain,

if (template.configuration) {
Template.replace(folder, template, [{
pattern: /https:\/\/your-repo-name(\.cdn)?\.prismic\.io\/api/,
pattern: /https:\/\/your-repo-name(\.cdn)?\.prismic\.io/,
value: Helpers.Domain.api(base, domain),
}]);
}
Expand Down Expand Up @@ -413,7 +413,7 @@ async function heroku(templates, templateName) {
Helpers.UI.display('Initialize local project...');
await Template.unzip(answers.template.url, answers.template.innerFolder);
Template.replace('.', answers.template, [{
pattern: /['"]https:\/\/your-repo-name(\.cdn)?\.prismic\.io\/api['"]/,
pattern: /['"]https:\/\/your-repo-name(\.cdn)?\.prismic\.io().*['"]/,
value: 'process.env.PRISMIC_ENDPOINT',
}]);
Helpers.UI.display('Running npm install...');
Expand Down

0 comments on commit 45d3191

Please sign in to comment.