Skip to content

Commit ecccc3f

Browse files
authored
Merge pull request #378 from microfox-ai/feat/agent-search-and-preset-sharing
Trigger mediamake site deployment
2 parents 3ef1387 + 75bda9e commit ecccc3f

File tree

2 files changed

+43
-20
lines changed

2 files changed

+43
-20
lines changed

apps/mediamake/deploy.mjs

Lines changed: 37 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -40,25 +40,31 @@ const configEntries = Object.entries(AWS_RENDER_CONFIGS);
4040

4141
console.log(`\nDeploying ${configEntries.length} Lambda function(s)...\n`);
4242

43-
// Deploy Lambda function for each configuration
43+
// Deploy Lambda function for each configuration (failures don't block site deployment)
44+
const functionFailures = [];
4445
for (const [configKey, config] of configEntries) {
4546
console.log(`[${configKey}] Deploying Lambda function...`);
4647
console.log(
4748
` Memory: ${config.memory}MB, Disk: ${config.disk}MB, Timeout: ${config.timeout}s`,
4849
);
4950

50-
const { functionName, alreadyExisted: functionAlreadyExisted } =
51-
await deployFunction({
52-
createCloudWatchLogGroup: true,
53-
memorySizeInMb: config.memory,
54-
region: region,
55-
timeoutInSeconds: config.timeout,
56-
diskSizeInMb: config.disk,
57-
});
51+
try {
52+
const { functionName, alreadyExisted: functionAlreadyExisted } =
53+
await deployFunction({
54+
createCloudWatchLogGroup: true,
55+
memorySizeInMb: config.memory,
56+
region: region,
57+
timeoutInSeconds: config.timeout,
58+
diskSizeInMb: config.disk,
59+
});
5860

59-
console.log(
60-
` ✓ ${functionName} ${functionAlreadyExisted ? '(already existed)' : '(created)'}\n`,
61-
);
61+
console.log(
62+
` ✓ ${functionName} ${functionAlreadyExisted ? '(already existed)' : '(created)'}\n`,
63+
);
64+
} catch (err) {
65+
console.log(` ✗ Failed: ${err.message}\n`);
66+
functionFailures.push({ configKey, error: err });
67+
}
6268
}
6369

6470
// Ensure bucket (shared across all configs)
@@ -86,14 +92,27 @@ console.log(siteName);
8692

8793
console.log();
8894
console.log('✓ Deployment complete!');
89-
console.log(
90-
`✓ Deployed ${configEntries.length} Lambda function(s) for all configurations:`,
91-
);
92-
configEntries.forEach(([key, config]) => {
95+
if (functionFailures.length > 0) {
9396
console.log(
94-
` - ${key}: ${config.memory}MB RAM, ${config.disk}MB disk, ${config.timeout}s timeout`,
97+
`${configEntries.length - functionFailures.length}/${configEntries.length} Lambda function(s) deployed (${functionFailures.length} failed):`,
9598
);
96-
});
99+
configEntries.forEach(([key, config]) => {
100+
const failed = functionFailures.find((f) => f.configKey === key);
101+
const status = failed ? '✗ FAILED' : '✓';
102+
console.log(
103+
` - ${key}: ${config.memory}MB RAM, ${config.disk}MB disk, ${config.timeout}s timeout [${status}]`,
104+
);
105+
});
106+
} else {
107+
console.log(
108+
`✓ Deployed ${configEntries.length} Lambda function(s) for all configurations:`,
109+
);
110+
configEntries.forEach(([key, config]) => {
111+
console.log(
112+
` - ${key}: ${config.memory}MB RAM, ${config.disk}MB disk, ${config.timeout}s timeout`,
113+
);
114+
});
115+
}
97116
console.log();
98117
console.log('You now have everything you need to render videos!');
99118
console.log('Re-run this command when:');

apps/mediamake/package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,15 @@
3030
"@ffmpeg-installer/ffmpeg": "^1.1.0",
3131
"@ffprobe-installer/ffprobe": "^2.1.2",
3232
"@hookform/resolvers": "^5.2.1",
33-
"@microfox/ai-router": "^2.1.2",
33+
"@microfox/ai-router": "*",
34+
"@microfox/ai-worker": "*",
35+
"@microfox/ai-workflow": "*",
3436
"@microfox/brave": "^1.2.3",
3537
"@microfox/coloruse": "^1.1.0",
3638
"@microfox/datamotion": "*",
3739
"@microfox/db-upstash": "^1.2.0",
3840
"@microfox/rag-upstash": "^1.2.0",
39-
"@microfox/remotion": "^1.2.3",
41+
"@microfox/remotion": "^1.2.5",
4042
"@microfox/s3-space": "^1.1.1",
4143
"@microfox/types": "^1.1.0",
4244
"@monaco-editor/react": "^4.7.0",
@@ -126,8 +128,10 @@
126128
"swr": "^2.3.6",
127129
"tailwind-merge": "^3.3.1",
128130
"throttleit": "^2.1.0",
131+
"tokenlens": "^1.3.1",
129132
"unified": "^11.0.5",
130133
"vaul": "^1.1.2",
134+
"workflow": "^4.0.1-beta.50",
131135
"zod": "^4.1.8"
132136
},
133137
"devDependencies": {

0 commit comments

Comments
 (0)