-
Notifications
You must be signed in to change notification settings - Fork 37
Fixes Login Issue #139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Fixes Login Issue #139
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| { | ||
| "firestore": { | ||
| "database": "(default)", | ||
| "location": "nam5", | ||
| "rules": "firestore.rules", | ||
| "indexes": "firestore.indexes.json" | ||
| }, | ||
| "hosting": { | ||
| "public": "public", | ||
| "ignore": [ | ||
| "firebase.json", | ||
| "**/.*", | ||
| "**/node_modules/**" | ||
| ], | ||
| "rewrites": [ | ||
| { | ||
| "source": "**", | ||
| "destination": "/index.html" | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| { | ||
| // Example (Standard Edition): | ||
| // | ||
| // "indexes": [ | ||
| // { | ||
| // "collectionGroup": "widgets", | ||
| // "queryScope": "COLLECTION", | ||
| // "fields": [ | ||
| // { "fieldPath": "foo", "arrayConfig": "CONTAINS" }, | ||
| // { "fieldPath": "bar", "mode": "DESCENDING" } | ||
| // ] | ||
| // }, | ||
| // | ||
| // "fieldOverrides": [ | ||
| // { | ||
| // "collectionGroup": "widgets", | ||
| // "fieldPath": "baz", | ||
| // "indexes": [ | ||
| // { "order": "ASCENDING", "queryScope": "COLLECTION" } | ||
| // ] | ||
| // }, | ||
| // ] | ||
| // ] | ||
| // | ||
| // Example (Enterprise Edition): | ||
| // | ||
| // "indexes": [ | ||
| // { | ||
| // "collectionGroup": "reviews", | ||
| // "queryScope": "COLLECTION_GROUP", | ||
| // "apiScope": "MONGODB_COMPATIBLE_API", | ||
| // "density": "DENSE", | ||
| // "multikey": false, | ||
| // "fields": [ | ||
| // { "fieldPath": "baz", "mode": "ASCENDING" } | ||
| // ] | ||
| // }, | ||
| // { | ||
| // "collectionGroup": "items", | ||
| // "queryScope": "COLLECTION_GROUP", | ||
| // "apiScope": "MONGODB_COMPATIBLE_API", | ||
| // "density": "SPARSE_ANY", | ||
| // "multikey": true, | ||
| // "fields": [ | ||
| // { "fieldPath": "baz", "mode": "ASCENDING" } | ||
| // ] | ||
| // }, | ||
| // ] | ||
| "indexes": [], | ||
| "fieldOverrides": [] | ||
|
Comment on lines
+1
to
+50
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
JSON doesn’t support ✅ Minimal valid JSON-{
- // Example (Standard Edition):
- //
- // "indexes": [
- // {
- // "collectionGroup": "widgets",
- // "queryScope": "COLLECTION",
- // "fields": [
- // { "fieldPath": "foo", "arrayConfig": "CONTAINS" },
- // { "fieldPath": "bar", "mode": "DESCENDING" }
- // ]
- // },
- //
- // "fieldOverrides": [
- // {
- // "collectionGroup": "widgets",
- // "fieldPath": "baz",
- // "indexes": [
- // { "order": "ASCENDING", "queryScope": "COLLECTION" }
- // ]
- // },
- // ]
- // ]
- //
- // Example (Enterprise Edition):
- //
- // "indexes": [
- // {
- // "collectionGroup": "reviews",
- // "queryScope": "COLLECTION_GROUP",
- // "apiScope": "MONGODB_COMPATIBLE_API",
- // "density": "DENSE",
- // "multikey": false,
- // "fields": [
- // { "fieldPath": "baz", "mode": "ASCENDING" }
- // ]
- // },
- // {
- // "collectionGroup": "items",
- // "queryScope": "COLLECTION_GROUP",
- // "apiScope": "MONGODB_COMPATIBLE_API",
- // "density": "SPARSE_ANY",
- // "multikey": true,
- // "fields": [
- // { "fieldPath": "baz", "mode": "ASCENDING" }
- // ]
- // },
- // ]
- "indexes": [],
- "fieldOverrides": []
-}
+{
+ "indexes": [],
+ "fieldOverrides": []
+}🧰 Tools🪛 Biome (2.1.2)[error] 2-2: Expected a property but instead found '// Example (Standard Edition):'. Expected a property here. (parse) [error] 49-49: End of file expected Use an array for a sequence of values: (parse) [error] 49-49: End of file expected Use an array for a sequence of values: (parse) [error] 49-49: End of file expected Use an array for a sequence of values: (parse) [error] 49-49: End of file expected Use an array for a sequence of values: (parse) [error] 50-50: End of file expected Use an array for a sequence of values: (parse) [error] 50-50: End of file expected Use an array for a sequence of values: (parse) [error] 50-50: End of file expected Use an array for a sequence of values: (parse) 🤖 Prompt for AI Agents |
||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| rules_version = '2'; | ||
| service cloud.firestore { | ||
| match /databases/{database}/documents { | ||
| match /users/{userId} { | ||
| allow read, write: if request.auth != null && request.auth.uid == userId; | ||
| } | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: OpenLake/canonforces
Length of output: 46
🏁 Script executed:
Repository: OpenLake/canonforces
Length of output: 294
🏁 Script executed:
Repository: OpenLake/canonforces
Length of output: 294
🏁 Script executed:
Repository: OpenLake/canonforces
Length of output: 294
🏁 Script executed:
Repository: OpenLake/canonforces
Length of output: 95
🏁 Script executed:
Repository: OpenLake/canonforces
Length of output: 46
🏁 Script executed:
# Check the current firebase.json file to understand full context cat firebase.jsonRepository: OpenLake/canonforces
Length of output: 446
🏁 Script executed:
# Read next.config.js cat next.config.jsRepository: OpenLake/canonforces
Length of output: 703
🏁 Script executed:
# Read package.json cat package.jsonRepository: OpenLake/canonforces
Length of output: 1676
Remove or reconfigure the hosting rewrites—this Next.js app requires a Node.js runtime.
The
firebase.jsonrewrite to/index.htmlis incompatible with this deployment. The project is configured as a full Next.js server application (withnext start, Socket.io, Firebase Admin SDK, and Redis), not a static export. The current configuration will break real-time features and API routes.Deploy using one of these approaches instead:
If you intended a static export, configure
output: "export"innext.config.js, remove Socket.io and backend dependencies, and add anext exportbuild script.🤖 Prompt for AI Agents