Skip to content
Source
Sign inSign up
TanStack/router

test(solid-start): basic-auth e2e suite and example #5558

Mergedbirkskyum(GitHub profile, opens in a new tab)merged 8 commits intomain fromrefs/pull/5558/headmerged by birkskyum(GitHub profile, opens in a new tab)

Showing 89 changed files with 31 additions and 0 deletions (loading 83).

x
0 of 89 viewed, 89 left
7 additions and 0 deletionse2e/solid-start/basic-auth/.envAdded
View file
@@ -0,0 +1,7 @@
+# Environment variables declared in this file are automatically made available to Prisma.
+# See the documentation for more detail: https://pris.ly/d/prisma-schema#accessing-environment-variables-from-the-schema
+​
+# Prisma supports the native connection string format for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB and CockroachDB.
+# See the documentation for all the connection string options: https://pris.ly/d/connection-strings
+​
+DATABASE_URL="file:./dev.db"
20 additions and 0 deletionse2e/solid-start/basic-auth/.gitignoreAdded
View file
@@ -0,0 +1,20 @@
+node_modules
+package-lock.json
+yarn.lock
+​
+!.env
+.DS_Store
+.cache
+.vercel
+.output
+​
Thread on lines 5 to 10

⚠️ Potential issue | 🔴 Critical

Do not un-ignore .env — risk of committing secrets.

Replace the negate rule with ignores and keep only an example file tracked.

-!.env
+.env
+.env.*
+!.env.example
 .DS_Store
 .cache
 .vercel
 .output

Optional: also ignore common debug logs

  • pnpm-debug.log*
  • npm-debug.log*
  • yarn-error.log*
📝 Committable suggestion

‼️ IMPORTANT Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

.env
.env.*
!.env.example
.DS_Store
.cache
.vercel
.output
🤖 Prompt for AI Agents
In e2e/solid-start/basic-auth/.gitignore around lines 5 to 10, the .gitignore
currently un-ignores .env (using "! .env") which risks committing secrets;
replace the negate rule by re-adding ".env" to the ignore list, create and track
a safe ".env.example" with placeholder values instead, and optionally append
common debug log ignores such as "pnpm-debug.log*", "npm-debug.log*", and
"yarn-error.log*" to the .gitignore.