Skip to content

Commit 6bf6c0e

Browse files
Use cookies for Auth, and general repo housekeeping (#307)
Codelab instructions were also re-published to go along with these changes. --------- Co-authored-by: Jeff Huleatt <[email protected]>
1 parent 41b0a4d commit 6bf6c0e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+19248
-3155
lines changed

.gitignore

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
**/.firebaserc
2-
**/node_modules/
2+
**/.DS_Store
33
**/*-debug.log
4-
**/.DS_Store
4+
5+
**/node_modules/
6+
**/package-lock.json
7+
**/pnpm-lock.yaml
8+
**/yarn.lock

nextjs-end/.env

Lines changed: 0 additions & 6 deletions
This file was deleted.

nextjs-end/.eslintrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": ["eslint:recommended", "next", "prettier"],
3+
"rules": {
4+
"@next/next/no-img-element": "off"
5+
}
6+
}

nextjs-end/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
lib/firebase/config.js
22
.next/
33
.firebase/
4-
node_modules/
4+
node_modules/
5+
.env

nextjs-end/.prettierrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"trailingComma": "es5"
3+
}

nextjs-end/apphosting.yaml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,6 @@ env:
22
# Set this with firebase apphosting:secrets:set
33
- variable: GEMINI_API_KEY
44
secret: gemini-api-key
5-
# Get these values from the Firebase console
6-
- variable: NEXT_PUBLIC_FIREBASE_API_KEY
7-
value: TODO
8-
- variable: NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN
9-
value: TODO
10-
- variable: NEXT_PUBLIC_FIREBASE_PROJECT_ID
11-
value: TODO
12-
- variable: NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET
13-
value: TODO
14-
- variable: NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID
15-
value: TODO
16-
- variable: NEXT_PUBLIC_FIREBASE_APP_ID
17-
value: TODO
5+
runConfig:
6+
minInstances: 0
7+
maxInstances: 2

nextjs-end/auth-service-worker.js

Lines changed: 0 additions & 45 deletions
This file was deleted.

nextjs-end/firebase.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,7 @@
4141
},
4242
"hosting": {
4343
"source": ".",
44-
"ignore": [
45-
"firebase.json",
46-
"**/.*",
47-
"**/node_modules/**"
48-
],
44+
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
4945
"frameworksBackend": {
5046
"region": "us-central1"
5147
}

nextjs-end/jsconfig.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"compilerOptions": {
3-
"paths": {
4-
"@/*": ["./*"]
5-
}
6-
}
2+
"compilerOptions": {
3+
"paths": {
4+
"@/*": ["./*"]
5+
}
6+
}
77
}

nextjs-end/next.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/** @type {import('next').NextConfig} */
22
const nextConfig = {
3-
experimental: {
4-
serverActions: true,
5-
}
3+
eslint: {
4+
ignoreDuringBuilds: true,
5+
},
66
};
77

88
module.exports = nextConfig;

0 commit comments

Comments
 (0)