Skip to content

Commit

Permalink
chore: remove comment
Browse files Browse the repository at this point in the history
  • Loading branch information
milljoniaer committed Nov 28, 2023
1 parent fe5d924 commit 714b21a
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions gatsby/util/build-netlify-preview-url.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
/**
* Get the Netlify Preview URL by previewId
* (this equals the github entity id, e.g. PR id).
* If no previewId is given the fallback URL gets return.
*
* On netlify the deployment urls follow a strict pattern:
* - https://deploy-preview-${PREVIEW_ID}--${DOMAIN_NAME}.netlify.app/
*/

const PRODUCTION_BRANCH = 'main';
export const buildNetlifyPreviewUrl = ({ domainName, reviewId, branch }) => {
if (!domainName || !reviewId || branch === PRODUCTION_BRANCH) {
Expand Down

0 comments on commit 714b21a

Please sign in to comment.