feat: Add www to cloudflare pages (#105)

Co-authored-by: --global <--global>

Add our website to cloudflare pages
This commit is contained in:
Wanjohi
2024-09-03 06:55:51 +03:00
committed by GitHub
parent 62b7a841ed
commit e2e5497c62
44 changed files with 243 additions and 47 deletions

20
sst.config.ts Normal file
View File

@@ -0,0 +1,20 @@
/// <reference path="./.sst/platform/config.d.ts" />
import { readdirSync } from "fs";
export default $config({
app(input) {
return {
name: "nestri",
removal: input?.stage === "production" ? "retain" : "remove",
home: "aws",
providers: { cloudflare: "5.37.1" },
};
},
async run() {
const outputs = {};
for (const value of readdirSync("./infra/")) {
const result = await import("./infra/" + value);
if (result.outputs) Object.assign(outputs, result.outputs);
}
return outputs;
},
});