revert build command, make Demo work for everyone

This commit is contained in:
martin-mfg
2025-09-20 13:41:07 +02:00
parent 23db1a3f58
commit cfabb254fa
2 changed files with 4 additions and 8 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
{
"buildCommand": "npm install && mkdir --parents .vercel/output/functions/api.func/ && cp --recursive ./* .vercel/output/functions/api.func/ && cp --recursive .vercel/output/functions/api.func/_dot_vercel_copy/output/ .vercel/ && ls -al .vercel/output/functions/api/",
"buildCommand": "npm install && mkdir --parents .vercel/output/functions/api.func/ && cp --recursive ./* .vercel/output/functions/api.func/ && cp --recursive .vercel/output/functions/api.func/_dot_vercel_copy/output/ .vercel/",
"redirects": [
{
"source": "/",
+3 -7
View File
@@ -22,13 +22,9 @@ const DemoScreen = () => {
const handleSubmit = async () => {
const validUser = await getValidUser(userName);
if (validUser.includes('Valid user') || validUser === 'Repo not starred') {
setLoading(true);
setSelectedUserName(userName);
setLoading(false);
} else if (validUser === 'GitHub user not found') {
setError('GitHub user not found. Check your spelling and try again.');
}
setLoading(true);
setSelectedUserName(userName);
setLoading(false);
};
const firstCardUrl =