mirror of
https://github.com/nestriness/nestri.git
synced 2025-12-11 00:05:36 +02:00
🧹 chore(infra): Upgrade to sst v3.11.21
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/// <reference path="./.sst/platform/config.d.ts" />
|
||||
import { readdirSync } from "fs";
|
||||
// import { readdirSync } from "fs";
|
||||
export default $config({
|
||||
app(input) {
|
||||
return {
|
||||
@@ -20,6 +20,7 @@ export default $config({
|
||||
};
|
||||
},
|
||||
async run() {
|
||||
const fs = await import("fs")
|
||||
|
||||
$transform(sst.aws.Function, (args) => {
|
||||
args.environment = $resolve([args.environment]).apply(([environment]) => {
|
||||
@@ -31,7 +32,7 @@ export default $config({
|
||||
});
|
||||
|
||||
const outputs = {};
|
||||
for (const value of readdirSync("./infra/")) {
|
||||
for (const value of fs.readdirSync("./infra/")) {
|
||||
const result = await import("./infra/" + value);
|
||||
if (result.outputs) Object.assign(outputs, result.outputs);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user