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: add local server #75

Merged
merged 1 commit into from
Oct 23, 2023
Merged

feat: add local server #75

merged 1 commit into from
Oct 23, 2023

Conversation

eduardoboucas
Copy link
Member

When using Blobs in Netlify Dev, we want to be able to read and write data from a sandboxed store, without affecting production data.

To make that possible, this PR adds a new local server (for Node.js) that offers the same interface as the edge endpoints, except it reads and writes data to local files on a pre-specified location on disk.

By implementing a server with the same interface as the actual backend, we can just use its address as the edgeURL property when creating a store, and the client will work in exactly the same way as if it was connecting to a live server.

For more context and a demo: https://netlify.slack.com/archives/C05DNT7CLFK/p1697446107031849

Part of https://github.com/netlify/pillar-runtime/issues/754.

@eduardoboucas eduardoboucas requested a review from a team as a code owner October 20, 2023 10:14
@netlify
Copy link

netlify bot commented Oct 20, 2023

Deploy Preview for blobs-js ready!

Name Link
🔨 Latest commit 30e4e63
🔍 Latest deploy log https://app.netlify.com/sites/blobs-js/deploys/65325313a38e2100084f2483
😎 Deploy Preview https://deploy-preview-75--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 Oct 20, 2023
@minivan
Copy link

minivan commented Oct 23, 2023

NIIIICE!

@eduardoboucas eduardoboucas merged commit dc209d7 into main Oct 23, 2023
@eduardoboucas eduardoboucas deleted the feat/local-server branch October 24, 2023 10:46
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