File size: 225 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
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()
}