Spaces:
Build error
Build error
Update .env example & next.config
Browse files- frontend/example.env +6 -3
- frontend/next.config.js +0 -3
frontend/example.env
CHANGED
@@ -4,7 +4,7 @@ NEXTAUTH_URL=http://localhost:3000
|
|
4 |
# Generate a random secret: https://generate-secret.vercel.app/32 or `openssl rand -base64 32`
|
5 |
NEXTAUTH_SECRET=super-random-secret
|
6 |
|
7 |
-
# Create a
|
8 |
# Authorization callback URL: https://authjs.dev/reference/core/providers_github#callback-url
|
9 |
GOOGLE_CLIENT_ID=something.apps.googleusercontent.com
|
10 |
GOOGLE_CLIENT_SECRET=google-client-secret
|
@@ -18,6 +18,9 @@ GOOGLE_CLIENT_SECRET=google-client-secret
|
|
18 |
# API Documentation: https://docs.id.gov.sg/introduction/overview
|
19 |
SGID_CLIENT_ID=sgid-client-id
|
20 |
SGID_CLIENT_SECRET=sgid-client-secret
|
21 |
-
|
22 |
-
|
23 |
|
|
|
|
|
|
|
|
4 |
# Generate a random secret: https://generate-secret.vercel.app/32 or `openssl rand -base64 32`
|
5 |
NEXTAUTH_SECRET=super-random-secret
|
6 |
|
7 |
+
# Create a Google OAuth app here: https://developers.google.com/identity/gsi/web/guides/get-google-api-clientid
|
8 |
# Authorization callback URL: https://authjs.dev/reference/core/providers_github#callback-url
|
9 |
GOOGLE_CLIENT_ID=something.apps.googleusercontent.com
|
10 |
GOOGLE_CLIENT_SECRET=google-client-secret
|
|
|
18 |
# API Documentation: https://docs.id.gov.sg/introduction/overview
|
19 |
SGID_CLIENT_ID=sgid-client-id
|
20 |
SGID_CLIENT_SECRET=sgid-client-secret
|
21 |
+
# Private key is needed for retrieving & decrypting the user info from SGID
|
22 |
+
# SGID_PRIVATE_KEY=sgid-private-key
|
23 |
|
24 |
+
# Chat API Endpoint (where the backend is running)
|
25 |
+
# (set to canonical URL of your app in production e.g. https://www.example.com)
|
26 |
+
CHAT_API=http://localhost:8000/api/chat
|
frontend/next.config.js
CHANGED
@@ -3,9 +3,6 @@ const nextConfig = {
|
|
3 |
experimental: {
|
4 |
serverComponentsExternalPackages: ["llamaindex"],
|
5 |
},
|
6 |
-
env: {
|
7 |
-
CHAT_API: "http://localhost:8000/api/chat",
|
8 |
-
},
|
9 |
compiler: {
|
10 |
// Enables the styled-components SWC transform
|
11 |
styledComponents: true
|
|
|
3 |
experimental: {
|
4 |
serverComponentsExternalPackages: ["llamaindex"],
|
5 |
},
|
|
|
|
|
|
|
6 |
compiler: {
|
7 |
// Enables the styled-components SWC transform
|
8 |
styledComponents: true
|