We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 262ab77 commit ae7c567Copy full SHA for ae7c567
apps/codingcatdev/scripts/dev-to.js
@@ -57,14 +57,13 @@ for await (const file of g) {
57
// Get new devto url and update
58
if (response.status === 201) {
59
const json = await response.json();
60
- console.log('data from devto', json);
61
if (json?.url) {
62
console.log('Updating', file, { devto: json.url });
63
const newMdFile = matter.stringify(content, {
64
...data,
65
devto: json.url
66
});
67
- fs.writeFileSync(file, newMdFile, { encoding: 'utf8', flag: 'r' });
+ fs.writeFileSync(file, newMdFile, { encoding: 'utf8' });
68
}
69
70
} catch (error) {
0 commit comments