feat: 11ty buildpack

This commit is contained in:
Andras Bacsai
2022-02-24 00:30:33 +01:00
parent 15a3fd4456
commit fd95936219
3 changed files with 37 additions and 11 deletions

View File

@@ -37,6 +37,8 @@
import { gitTokens } from '$lib/store';
import { browser } from '$app/env';
const { id } = $page.params;
let scanning = true;
let foundConfig = null;
let packageManager = 'npm';
@@ -176,6 +178,8 @@
}
}
if (error.message === 'Bad credentials') {
const { token } = await get(`/applications/${id}/configuration/githubToken.json`);
$gitTokens.githubToken = token;
browser && window.location.reload();
}
return errorNotification(error);