diff --git a/.gitignore b/.gitignore index 065329ac..c90dadbc 100644 --- a/.gitignore +++ b/.gitignore @@ -27,4 +27,5 @@ dist-ssr .aider* .env +.env.* package-lock.json \ No newline at end of file diff --git a/src/components/HeaderLogin.tsx b/src/components/HeaderLogin.tsx index f441ead3..314fe2cc 100644 --- a/src/components/HeaderLogin.tsx +++ b/src/components/HeaderLogin.tsx @@ -28,41 +28,42 @@ export const HeaderLogin: React.FC = () => { if (!isLoggedIn) { return (
- - + }} + variant="ghost" + size="sm" + > + Fake testuser Login + + ) : ( +
+ + +
+ )}
) } diff --git a/vite.config.ts b/vite.config.ts index cca1ba1c..8a55b569 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -37,7 +37,7 @@ function apiFakePlugin(): Plugin { let plugins: any[] = [react()] let proxy: any = undefined -if (!process.env.SNIPPETS_API_URL) { +if (!process.env.SNIPPETS_API_URL && !process.env.VERCEL) { process.env.VITE_USE_FAKE_API = "true" console.log("Using fake snippets API (see ./fake-snippets-api)") plugins.push(apiFakePlugin())