mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-09 21:07:46 +00:00
10 lines
258 B
JavaScript
10 lines
258 B
JavaScript
import fs from 'fs';
|
|
import path from 'path';
|
|
|
|
export async function getContent() {
|
|
const files = fs.readdirSync(path.join(process.cwd(), 'content'));
|
|
return files.map(file =>
|
|
fs.readFileSync(path.join(process.cwd(), 'content', file), 'utf8')
|
|
);
|
|
}
|