Skip to content

Commit d421dff

Browse files
committed
chore: bump version to v0.1.61 and finalize serverless docs
1 parent 8161f92 commit d421dff

3 files changed

Lines changed: 28 additions & 7 deletions

File tree

ARCHITECTURE.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,27 @@ Unlike many "modern" deployment tools, NextDeploy chooses native execution over
6868
- **Performance**: Zero virtualization overhead.
6969
- **Resource Usage**: Lower RAM/CPU footprint.
7070
- **Transparency**: Devs can use standard Linux tools (`top`, `ps`, `cd`) to see their app exactly as it is.
71+
72+
---
73+
74+
## ☁️ Cloud / Serverless Architecture
75+
76+
In addition to VPS targets, NextDeploy supports **AWS Serverless** as a first-class citizen.
77+
78+
### 1. Artifact Discovery
79+
The CLI looks for `.nextdeploy/app.tar.gz`. This artifact is cross-platform; the same build used for VPS can be used for Serverless.
80+
81+
### 2. Static Asset Offloading
82+
- `public/` and `_next/static/` are uploaded to **Amazon S3**.
83+
- Correct `Content-Type` is detected via magic bytes.
84+
- Cache-Control is set to `public, max-age=31536000, immutable` for hashed assets.
85+
86+
### 3. Compute Layer (Lambda)
87+
- The `.next/standalone` directory is zipped and deployed to **AWS Lambda**.
88+
- NextDeploy triggers `UpdateFunctionCode` to swap versions.
89+
90+
### 4. Zero-Leak Secrets
91+
Secrets are pushed to **AWS Secrets Manager**. NextDeploy injects only the `ND_SECRETS_ARN` environment variable into the Lambda environment. The application code fetches actual values at runtime via IAM, ensuring secrets never touch the deployment zip or build logs.
92+
93+
### 5. CDN Invalidation
94+
If a `cloudfront_id` is provided, a `/*` invalidation is triggered automatically to ensure immediate global availability of the new version.

README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,10 @@
22

33
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=Golangcodes_nextdeploy&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=Golangcodes_nextdeploy)
44

5-
## 📚 Documentation
65

7-
For a deep dive into the architecture, commands, and security of NextDeploy, visit our **[Documentation Site](docs/README.md)**.
6+
## 📚 Documentation
87

9-
- **[Introduction](docs/INTRODUCTION.md)**: Why NextDeploy?
10-
- **[Architecture](docs/ARCHITECTURE.md)**: How it works under the hood.
11-
- **[Command Reference](docs/COMMANDS.md)**: Complete CLI guide.
8+
For a deep dive into the architecture, commands, and security of NextDeploy, visit our **[Documentation Site](https://nextdeploy.one/docs)**.
129

1310
NextDeploy is an open-source CLI and daemon for deploying and managing Next.js applications on your own infrastructure.
1411
No lock-in. No magic. Just Native Execution, SSH, and full control.
@@ -100,7 +97,7 @@ Other platforms abstract until you lose control. NextDeploy flips that. You own
10097
## Roadmap
10198

10299
* [x] Native VPS Deployment (systemd)
103-
* [ ] AWS Serverless support (Lambda + CloudFront)
100+
* [x] AWS Serverless support (Lambda + CloudFront)
104101
* [x] Integrated Secret Management
105102
* [x] Live Logs and Status metrics
106103
* [ ] CI/CD via GitHub Actions / Webhooks

shared/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
package shared
22

3-
const Version = "v0.1.60"
3+
const Version = "v0.1.61"

0 commit comments

Comments
 (0)