diff --git a/helpers/api/static.js b/helpers/api/static.js index 91b2b29..1784911 100644 --- a/helpers/api/static.js +++ b/helpers/api/static.js @@ -10,6 +10,12 @@ import { } from '~/helpers/stork/config.js' export async function downloadStorkToml () { + // Check if the toml file exists + if (fs.existsSync(storkTomlPath)) { + console.log(`Stork toml file already exists at ${storkTomlPath}`) + return + } + const apiUrl = new URL( process.env.PUBLIC_API_DOMAIN ) apiUrl.pathname = storkTomlPath.replace('static/', '')