mirror of
https://github.com/nestriness/nestri.git
synced 2025-12-11 08:15:38 +02:00
21 lines
551 B
TypeScript
21 lines
551 B
TypeScript
/// <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;
|
|
},
|
|
});
|