Skip to content

Commit

Permalink
Merge branch 'release-1.0.0' of https://github.com/tekdi/shiksha-work…
Browse files Browse the repository at this point in the history
  • Loading branch information
itsvick committed Dec 11, 2024
2 parents eaf4da1 + 10747f1 commit d82abf8
Show file tree
Hide file tree
Showing 38 changed files with 3,316 additions and 2,087 deletions.
17 changes: 11 additions & 6 deletions .env
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
BASE_URL="" # Middleware Path - eg : "https://middleware.prathamdigital.org"
AUTH_API_TOKEN="" # User Auth Access Token
NEXT_PUBLIC_TENANT_ID="" # Tenant Id of User
NEXT_PUBLIC_CLOUD_STORAGE_URL="" # Use environment variable for S3 Cloud Storage URL - should have / at the end.
NEXT_PUBLIC_CHANNEL_ID="" # Channel Id of knowlg-inQuiry setup
NEXT_PUBLIC_FRAMEWORK_ID="" # Framework Id of knowlg-inQuiry setup
BASE_URL="" # Middleware Path - eg : "https://middleware.prathamdigital.org"
AUTH_API_TOKEN="" # User Auth Access Token
NEXT_PUBLIC_TENANT_ID="" # Tenant Id of User
NEXT_PUBLIC_CLOUD_STORAGE_URL="" # Use environment variable for S3 Cloud Storage URL - should have / at the end.
NEXT_PUBLIC_CHANNEL_ID="" # Channel Id of knowlg-inQuiry setup
NEXT_PUBLIC_FRAMEWORK_ID="" # Framework Id of knowlg-inQuiry setup
NEXT_PUBLIC_TELEMETRY_URL="" #telemetry service path
AWS_ACCESS_KEY_ID="" # For AWS S3 large file chunks upload
AWS_ACCESS_SECRET_KEY="" # For AWS S3 large file chunks upload
AWS_BUCKET_NAME="" # For AWS S3 large file chunks upload
AWS_REGION="" # For AWS S3 large file chunks upload
8 changes: 8 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ const nextConfig = {
source: "/action/content/:path*", // Match other /action/asset routes
destination: "/api/proxy?path=/action/content/:path*", // Forward other /action/asset requests to proxy.js
},
{
source: "/action/data/v3/telemetry",
destination: `${process.env.NEXT_PUBLIC_TELEMETRY_URL}/v1/telemetry`,
},
{
source: "/data/v3/telemetry",
destination: `${process.env.NEXT_PUBLIC_TELEMETRY_URL}/v1/telemetry`,
},
{
source: "/action/:path*", // Match any other routes starting with /action/
destination: "/api/proxy?path=/action/:path*", // Forward them to proxy.js
Expand Down
Loading

0 comments on commit d82abf8

Please sign in to comment.