thatbeautifuldream / gitstarred

Browse starred repos from community github profiles.
https://gitstarred.vercel.app
1 stars 0 forks source link

[BUG]: .env.example file have not mentioned required enviorement variables #1

Closed growupanand closed 3 months ago

growupanand commented 3 months ago

Description of the bug

Currently, only DATABASE_URL variable is mentioned, which is not using in the project. We should replace this with GITHUB_TOKEN which is required by the project.

╰─$ pnpm dev

> gitstarred@0.1.0 dev /home/growupanand/Development/repos/gitstarred
> next dev

❌ Invalid environment variables: { GITHUB_TOKEN: [ 'Required' ] }
file:///home/growupanand/Development/repos/gitstarred/node_modules/.pnpm/@t3-oss+env-core@0.10.1_typescript@5.4.5_zod@3.23.8/node_modules/@t3-oss/env-core/dist/index.js:29
        throw new Error("Invalid environment variables");
              ^

Error: Invalid environment variables
    at onValidationError (file:///home/growupanand/Development/repos/gitstarred/node_modules/.pnpm/@t3-oss+env-core@0.10.1_typescript@5.4.5_zod@3.23.8/node_modules/@t3-oss/env-core/dist/index.js:29:15)
    at createEnv (file:///home/growupanand/Development/repos/gitstarred/node_modules/.pnpm/@t3-oss+env-core@0.10.1_typescript@5.4.5_zod@3.23.8/node_modules/@t3-oss/env-core/dist/index.js:35:16)
    at createEnv (file:///home/growupanand/Development/repos/gitstarred/node_modules/.pnpm/@t3-oss+env-nextjs@0.10.1_typescript@5.4.5_zod@3.23.8/node_modules/@t3-oss/env-nextjs/dist/index.js:12:12)
    at file:///home/growupanand/Development/repos/gitstarred/src/env.js:4:20
    at ModuleJob.run (node:internal/modules/esm/module_job:222:25)
    at async ModuleLoader.import (node:internal/modules/esm/loader:316:24)
    at async file:///home/growupanand/Development/repos/gitstarred/next.config.js:5:1

Node.js v20.13.1
 ELIFECYCLE  Command failed with exit code 1.

Steps To Reproduce

pnpm dev

Additional Information

No response