Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async deployAsSPA(dir = DEFAULT_DIR, {auth, environmentVars}) {
const {deployName: name} = this
const path = dir + '/package.json'
await writePackageJson({name, path, auth})
const deployUrl = await this.deploy(dir, {auth, environmentVars})
await removeFile(path)
return deployUrl
}
}