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: deploy / adapter / AWS Lambda #48

Draft
wants to merge 53 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
b2cf313
feat: first draft
aheissenberger Sep 25, 2024
4280adc
fix: reduce middleware to ssr, add urlParser to add expected url obje…
aheissenberger Sep 25, 2024
4d049d7
fix: add base to url
aheissenberger Sep 25, 2024
21965ff
fix: add package.json
aheissenberger Sep 25, 2024
7782c46
fix: request text/html
aheissenberger Sep 25, 2024
96bacb4
fix: revert to include all middlewares
aheissenberger Sep 25, 2024
6b1d1d3
fix: use enviroment variable `OUT_DIR` to set path from cwd to `.reac…
aheissenberger Sep 25, 2024
0efff6d
fix: enhance demo
aheissenberger Sep 25, 2024
7be2c1b
feat: add examples for aws-cdk, serverless framework, sst v3 (ion)
aheissenberger Sep 26, 2024
0968dc1
Merge branch 'main' into feat/adapter/aws-lambda
aheissenberger Sep 26, 2024
ce803ea
fix: add sst ReactServer Stack
aheissenberger Sep 28, 2024
a862521
fix: docs
aheissenberger Sep 28, 2024
feeaa15
fix: sst env
aheissenberger Sep 29, 2024
c1fa103
Merge branch 'main' into feat/adapter/aws-lambda
aheissenberger Sep 29, 2024
4901105
feat: add streaming support
aheissenberger Sep 29, 2024
c305eda
feat: add docs
aheissenberger Sep 29, 2024
7edf8d3
feat: detect aws deployment tool and initialize needed configuration …
aheissenberger Sep 29, 2024
bbb7c73
Merge branch 'main' into feat/adapter/aws-lambda
aheissenberger Sep 29, 2024
09f2942
fix: remove node version
aheissenberger Sep 29, 2024
28419e0
fix: broken lockfile
aheissenberger Sep 29, 2024
955c9c3
fix: add error info
aheissenberger Sep 29, 2024
6f0c13a
fix: sst setup
aheissenberger Sep 29, 2024
7769469
fix: lockfile
aheissenberger Sep 29, 2024
b011546
Merge branch 'main' into feat/adapter/aws-lambda
aheissenberger Dec 6, 2024
efb4503
fix: sst implementation without add anything to the .sst folder
aheissenberger Dec 6, 2024
c14dd85
Merge branch 'main' into feat/adapter/aws-lambda
aheissenberger Dec 6, 2024
cf71f36
fix: show exception
aheissenberger Dec 6, 2024
ca97d80
fix: update packages
aheissenberger Dec 7, 2024
322ae62
Merge branch 'main' into feat/adapter/aws-lambda
aheissenberger Dec 16, 2024
b580261
fix: pnpm-lock
aheissenberger Dec 16, 2024
d6617f3
fix: lockfile
aheissenberger Dec 16, 2024
b88a00e
fix: remove directory
aheissenberger Dec 16, 2024
2d08fcd
Merge branch 'main' into feat/adapter/aws-lambda
aheissenberger Dec 17, 2024
8eebed1
fix: linting
aheissenberger Dec 17, 2024
e6234ba
fix: rsc.component handling on aws
aheissenberger Dec 17, 2024
647af57
fix: update packages
aheissenberger Dec 17, 2024
a8af95c
fix: update example app
aheissenberger Dec 17, 2024
5630a5b
fix: typescript errors
aheissenberger Dec 17, 2024
0e6d5c1
fix: change docs for sst
aheissenberger Dec 17, 2024
961966c
feat: add better toolkit detection, provide static pages to cdk, fix …
aheissenberger Dec 18, 2024
e4c8776
fix: update example
aheissenberger Dec 18, 2024
13b3f57
fix: update docs
aheissenberger Dec 18, 2024
f67212f
fix: update packages
aheissenberger Dec 18, 2024
4ca66fd
fix: caching
aheissenberger Dec 19, 2024
c8a2e63
fix: content type for RSC
aheissenberger Dec 19, 2024
d48d966
fix: docs
aheissenberger Dec 19, 2024
b062b31
Merge branch 'main' into feat/adapter/aws-lambda
aheissenberger Dec 19, 2024
99abb38
fix: text blocks
aheissenberger Dec 19, 2024
6f85d63
fix: show toolkit aware deploy command
aheissenberger Dec 19, 2024
ab08c87
feat: configure the cloudfront routing
aheissenberger Dec 19, 2024
e771738
fix: update example
aheissenberger Dec 19, 2024
f8987ae
fix: lockfile
aheissenberger Dec 19, 2024
b0e31be
feat: disable static file server in lambda function
aheissenberger Dec 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: enhance demo
  • Loading branch information
aheissenberger committed Sep 25, 2024
commit 0efff6d9d93d1354676af4e109e52ec276738439
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ node_modules
.react-server-*
.vercel
.aws-lambda
.serverless
.sst
*.pem
*.sqlite
*.log
Expand Down
29 changes: 29 additions & 0 deletions examples/hello-world-aws/src/Counter.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
"use client";
import { useState } from "react";

export default function Counter() {
const [count, setCount] = useState(0);

return (
<div className="flex flex-col items-center justify-center h-screen">
<h1 className="text-4xl font-bold">Counter</h1>
<p className="mt-4 text-center">
The current count is <span className="font-bold">{count}</span>.
</p>
<div className="mt-4 space-x-4">
<button
className="px-4 py-2 text-white bg-blue-500 rounded"
onClick={() => setCount((prevCount) => prevCount + 1)}
>
Increment
</button>
<button
className="px-4 py-2 text-white bg-red-500 rounded"
onClick={() => setCount((prevCount) => prevCount - 1)}
>
Decrement
</button>
</div>
</div>
);
}
3 changes: 3 additions & 0 deletions examples/hello-world-aws/src/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
h1 {
font-family: "Courier New", Courier, monospace;
}
12 changes: 11 additions & 1 deletion examples/hello-world-aws/src/index.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
import "./index.css";

import Counter from "./Counter";

export default function App() {
return <h1>Hello World</h1>;
return (
<div>
<h1>Hello World</h1>
<p>This is a server-rendered React application.</p>
<Counter />
</div>
);
}