mirror of
https://github.com/nestriness/nestri.git
synced 2025-12-12 16:55:37 +02:00
fix: Fix SST infra directory
This commit is contained in:
@@ -21,18 +21,9 @@ export default $config({
|
|||||||
async run() {
|
async run() {
|
||||||
const fs = await import("fs")
|
const fs = await import("fs")
|
||||||
|
|
||||||
$transform(sst.aws.Function, (args) => {
|
|
||||||
args.environment = $resolve([args.environment]).apply(([environment]) => {
|
|
||||||
return {
|
|
||||||
...environment,
|
|
||||||
NODE_OPTIONS: "--experimental-websocket",
|
|
||||||
};
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
const outputs = {};
|
const outputs = {};
|
||||||
for (const value of fs.readdirSync("./infra/")) {
|
for (const value of fs.readdirSync("./cloud/infra/")) {
|
||||||
const result = await import("./infra/" + value);
|
const result = await import("./cloud/infra/" + value);
|
||||||
if (result.outputs) Object.assign(outputs, result.outputs);
|
if (result.outputs) Object.assign(outputs, result.outputs);
|
||||||
}
|
}
|
||||||
return outputs;
|
return outputs;
|
||||||
|
|||||||
Reference in New Issue
Block a user