Repository navigation
Conversation
jh0ker
added this pull request to stack #127
October 6, 2026 15:37
✅ 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-stack
branch
2 times, most recently
from
October 6, 2026 16:20
d49b122 to
f8f6aef
Compare
jh0ker
force-pushed
the
dev/local-stack
branch
2 times, most recently
from
October 7, 2026 11:28
e48b589 to
6f69834
Compare
Runs both front- and backend, but still using the dev bucket in AWS for now
The bucket-level assets/ prefix is a leftover from uploads before 876ae9f (2018) moved them to data/assets/. The app only reads /data/assets/ and CloudFront only routes data/* to the project bucket.
jh0ker
force-pushed
the
dev/local-stack
branch
from
October 7, 2026 11:33
6f69834 to
9b86add
Compare
jh0ker
marked this pull request as ready for review
October 7, 2026 11:41
This branch has not been deployed
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.
docker compose upnow runs the whole app locally, with a local S3 service instead of the AWS dev bucket.Services: frontend, backend and a pinned SeaweedFS S3 service.
storage-seedcreates thecode4maus-localbucket, configures CORS and public reads underdata/, and uploads missing project media. No AWS credentials or~/.awsmount are needed.Env defaults:
.env.exampleand.env.backend.exampledefault to this local setup. Running against the deployed dev stage is documented inCONTRIBUTING.md.Storage endpoints: the backend uses
STORAGE_ENDPOINTfor its own storage access and signs browser uploads forSTORAGE_ENDPOINT_FRONTEND(localhost).Asset scripts:
yarn assets:download|check|uploadreplace theaws s3 syncscripts andextract-assets.js:downloadfetches missing media from a deployed site intoassets/runtime/.checkcompares that folder against what the checkout references.uploadpublishes only missing files to a bucket'sdata/assets/and never overwrites anything.yarn test:assetscovers them.Volumes: only
node_modulesand the storage data are named volumes. Volumes mounted inside the bind-mounted checkout made Docker create root-owned.cache/andbuild/directories on the host, which broke host builds and git checkouts. The dev server builds in memory only (static: false)..cache/: the old MinIO data in.cache/is no longer tracked.Deployment docs:
cdk/DEPLOYMENT.mdnow uses the asset scripts to fill a new stage's bucket. Theassets/prefix in the old note is a leftover from before 876ae9f (2018). The app only readsdata/assets/, and CloudFront only routesdata/*to the project bucket.Tested:
docker compose upfrom a fresh checkout. Pages,/datafrom the local bucket and/api(including presigned uploads) all work, and the checkout has no root-owned files afterwards.yarn test:assets(8 tests).