()
| 160 | } |
| 161 | |
| 162 | export 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 | |
| 173 | export async function getNetlifyRedirect ( path ) { |
| 174 | // Check if the path is valid |
no test coverage detected