Repository navigation
Replace serverless-offline with a local backend server - #125
Merged
Merged
Conversation
jh0ker
added this pull request to stack #127
October 6, 2026 15:37
Merged
✅ Deploy Preview for serene-narwhal-9b7b1c ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for peaceful-raindrop-cb2462 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
jh0ker
force-pushed
the
dev/local-backend
branch
from
October 6, 2026 15:51
d7ad297 to
6516bb2
Compare
jh0ker
force-pushed
the
dev/local-backend
branch
2 times, most recently
from
October 6, 2026 17:08
de57dc0 to
fa293e4
Compare
jh0ker
force-pushed
the
dev/local-backend
branch
from
October 7, 2026 11:33
fa293e4 to
b9b40a0
Compare
jh0ker
marked this pull request as ready for review
October 7, 2026 11:41
Collaborator
|
🚀 |
jh0ker
force-pushed
the
dev/local-backend
branch
from
October 12, 2026 15:54
b9b40a0 to
33000da
Compare
The Serverless deploy scripts and config cannot run anymore; deployment uses CDK. serverless-offline is replaced by the local backend server. webpack.backend.js stays for the Netlify functions build, without the serverless-webpack entries.
jh0ker
force-pushed
the
dev/local-backend
branch
from
October 12, 2026 15:58
33000da to
420a6b6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
yarn start:backendnow runs a small local Express server instead of serverless-offline, and the Serverless Framework is removed.src/backend/local/calls the same three Lambda handlers as the CDK stack. esbuild rebuilds and restarts it on changes. The bundle goes tonode_modules/.cache/backend/.yarn test:backendruns HTTP tests against the handlers with mocked S3 (save, upload, sharing, request validation, storage errors). It includes a regression test for saving with an existing id; the frontend fix for that is in the separate regression-fixes PR.getSignedUrlPromise. The synchronousgetSignedUrlcan't wait for credentials that load asynchronously, such as the SSO profiles used locally.NotFoundandNoSuchKeycount as a missing object. Other errors, such as access denied, now propagate instead of being treated as missing. The deployed Lambdas haves3:List*throughgrants.readWrite, so missing objects still return 404 there.serverless.yml, thedeploy:*scripts andscripts/deploy-frontend.share deleted. Deployment uses CDK, and none of these could run anymore.webpack.backend.jsstays for the Netlify functions build, minus itsserverless-webpackentries.Tested:
yarn test:backend(20 tests), starting the backend and checking/health,yarn build:backend:netlify.