mirror of
https://github.com/nestriness/nestri.git
synced 2025-12-12 00:35:38 +02:00
✨ feat: Add www to cloudflare pages (#105)
Co-authored-by: --global <--global> Add our website to cloudflare pages
This commit is contained in:
20
sst.config.ts
Normal file
20
sst.config.ts
Normal 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;
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user