Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOP-5023: Netlify Integration Calls Mut-Redirects #8

Merged
merged 48 commits into from
Sep 30, 2024
Merged

Conversation

anabellabuckvar
Copy link
Collaborator

@anabellabuckvar anabellabuckvar commented Sep 25, 2024

TICKET

DOP-5023

NOTES

This PR adds another build event handler to the existing snooty-cache Netlify integration. This new build event handler downloads Mut and calls Mut-redirects, which creates an .htaccess file derived from the content repo's config/redirects file. This file will be used to by mut-publish as will be implemented in DOP-5022.

This code should live in its own Netlify integration/extension but this can be done in a separate PR at a later date- Netlify is set to do a big release to their SDK on 10/2 or 10/3 and at which point they will enable migration to "extensions" from "integrations".

TESTING

A docs-node-branfork build with this branch of this integration:
https://app.netlify.com/sites/docs-node-branfork/deploys/66f58400f940d62eb99b6aa9
On line 2947 of the logs we can see that an .htaccess file has been created (the logging statement responsible for this output has been removed so that the PR is merge-ready)

Copy link

netlify bot commented Sep 25, 2024

Deploy Preview for mut-connector failed. Why did it fail? →

Name Link
🔨 Latest commit bfe90d1
🔍 Latest deploy log https://app.netlify.com/sites/mut-connector/deploys/66f6e0346752e8000839a949

Copy link

netlify bot commented Sep 25, 2024

Deploy Preview for redoc-integration canceled.

Name Link
🔨 Latest commit 9fbb8b1
🔍 Latest deploy log https://app.netlify.com/sites/redoc-integration/deploys/66f70ccb046e39000887ba58

Copy link

netlify bot commented Sep 25, 2024

Deploy Preview for site-links-display canceled.

Name Link
🔨 Latest commit 9fbb8b1
🔍 Latest deploy log https://app.netlify.com/sites/site-links-display/deploys/66f70ccb88e73f00085a66e4

Copy link

netlify bot commented Sep 25, 2024

Deploy Preview for snooty-cache-plugin ready!

Name Link
🔨 Latest commit 9fbb8b1
🔍 Latest deploy log https://app.netlify.com/sites/snooty-cache-plugin/deploys/66f70ccbf3372d000838da14
😎 Deploy Preview https://deploy-preview-8--snooty-cache-plugin.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Sep 25, 2024

Deploy Preview for persistence-module-integration canceled.

Name Link
🔨 Latest commit 9fbb8b1
🔍 Latest deploy log https://app.netlify.com/sites/persistence-module-integration/deploys/66f70ccbe4c1a80008a63c7c

Copy link

netlify bot commented Sep 25, 2024

Deploy Preview for search-manifest-integration canceled.

Name Link
🔨 Latest commit 9fbb8b1
🔍 Latest deploy log https://app.netlify.com/sites/search-manifest-integration/deploys/66f70ccb046e39000887ba5c

Copy link

netlify bot commented Sep 26, 2024

Deploy Preview for git-changed-files-plugin-bianca failed. Why did it fail? →

Name Link
🔨 Latest commit 5e4b39c
🔍 Latest deploy log https://app.netlify.com/sites/git-changed-files-plugin-bianca/deploys/66f5b026ef50ee0008da41db

@anabellabuckvar anabellabuckvar changed the title DOP-5023 DOP-5023: Netlify Integration Calls Mut-Redirects Sep 26, 2024
@anabellabuckvar anabellabuckvar marked this pull request as ready for review September 26, 2024 19:23
Copy link
Collaborator

@branberry branberry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link

netlify bot commented Sep 27, 2024

Deploy Preview for git-changed-files-plugin-bianca canceled.

Name Link
🔨 Latest commit 9fbb8b1
🔍 Latest deploy log https://app.netlify.com/sites/git-changed-files-plugin-bianca/deploys/66f70ccb0c3f080008557b86

snooty-cache/src/index.ts Outdated Show resolved Hide resolved
Copy link
Collaborator

@i80and i80and left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wonderful!

@anabellabuckvar anabellabuckvar merged commit 6fb7b9a into main Sep 30, 2024
24 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants