mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
13 lines
318 B
JavaScript
13 lines
318 B
JavaScript
import { promises as fs } from 'fs'
|
|
|
|
import { default as TOML } from '@iarna/toml'
|
|
|
|
|
|
|
|
export async function getNetlifyConfig () {
|
|
const netlifyTomlContents = await fs.readFile('./netlify.toml', 'utf-8')
|
|
|
|
// console.log('netlifyTomlContent', netlifyTomlContents)
|
|
|
|
return TOML.parse( netlifyTomlContents )
|
|
}
|