MCPcopy
hub / github.com/ThatGuySam/doesitarm / getNetlifyConfig

Function getNetlifyConfig

helpers/config-node.js:162–171  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

160}
161
162export async function getNetlifyConfig () {
163 const configPath = await getNetlifyConfigPath()
164 const tomlContent = await fs.readFile(configPath, 'utf-8')
165 const netlifyConfig = TOML.parse(tomlContent)
166
167 // console.log('netlifyConfig', netlifyConfig)
168 // console.log('tomlContent', tomlContent)
169
170 return netlifyConfig
171}
172
173export async function getNetlifyRedirect ( path ) {
174 // Check if the path is valid

Callers 1

getNetlifyRedirectFunction · 0.85

Calls 2

getNetlifyConfigPathFunction · 0.85
readFileMethod · 0.80

Tested by

no test coverage detected