feat(generateContent): remove "content" key unused for generated files

This commit is contained in:
Mathieu Schimmerling
2023-01-05 23:32:07 +01:00
parent 32da781b3d
commit 8db75adbcc

View File

@@ -122,6 +122,12 @@ export default async function generateContent() {
if (playgroundURL) {
frameworkSnippet.playgroundURL = playgroundURL;
}
// Remove content key, not used anymore
frameworkSnippet.files = frameworkSnippet.files.map((file) => ({
...file,
content: undefined,
}));
}
if (!byFrameworkId[frameworkId]) {