mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
The Snozzberries taste like Snozzberries...! Co-authored-by: OJ Kwon <[email protected]> Co-authored-by: LongYinan <[email protected]> Co-authored-by: JJ Kasper <[email protected]> Co-authored-by: Jared Palmer <[email protected]>
13 lines
225 B
JavaScript
13 lines
225 B
JavaScript
import fs from 'fs'
|
|
import path from 'path'
|
|
|
|
const getCmsData = require('some-cms')
|
|
|
|
try {
|
|
fs.readdirSync(path.join(process.cwd(), 'public/exclude-me'))
|
|
} catch (_) {}
|
|
|
|
export function fetchData() {
|
|
return getCmsData()
|
|
}
|