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

feat: allow internal access to legacy stores #152

Merged
merged 3 commits into from Mar 6, 2024
Merged

Conversation

eduardoboucas
Copy link
Member

Which problem is this pull request solving?

Allows site-scoped stores using the legacy namespace to be access using a special prefix. This is not a customer-facing feature and is meant to be used by Netlify tooling.

List other issues or pull requests related to this problem

Part of ADN-370.

@eduardoboucas eduardoboucas requested a review from a team as a code owner March 6, 2024 12:13
Copy link

netlify bot commented Mar 6, 2024

Deploy Preview for blobs-js ready!

Name Link
🔨 Latest commit 0ef9c30
🔍 Latest deploy log https://app.netlify.com/sites/blobs-js/deploys/65e86ff76b00b60009cf29b6
😎 Deploy Preview https://deploy-preview-152--blobs-js.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.

@github-actions github-actions bot added the type: feature code contributing to the implementation of a feature and/or user facing functionality label Mar 6, 2024
mraerino
mraerino previously approved these changes Mar 6, 2024
// HEAD requests are implemented directly in the Netlify API.
if (method === HTTPMethod.HEAD) {
// HEAD and DELETE requests are implemented directly in the Netlify API.
if (method === HTTPMethod.HEAD || method === HTTPMethod.DELETE) {
Copy link
Member Author

Choose a reason for hiding this comment

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

This is not exactly related to this PR, but I noticed this was wrong when tests started failing, so I'm including the fix here.

siteID,
storeName,
url,
if (legacyAPIURLMatch) {
Copy link
Member Author

Choose a reason for hiding this comment

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

We must continue supporting the legacy API endpoints because we might have an old client communicating with this server.

@eduardoboucas eduardoboucas merged commit 1b712fe into main Mar 6, 2024
9 checks passed
@eduardoboucas eduardoboucas deleted the feat/legacy-mode branch March 6, 2024 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature code contributing to the implementation of a feature and/or user facing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants