Reverting some uneccesary changes

This commit is contained in:
Keith Stevens
2023-01-28 17:58:52 +09:00
parent 62d00d5bd4
commit 75c4f90db3
4 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ services:
# Use `docker compose up backend-dev --build --attach-dependencies` to start a database and work and the backend.
backend-dev:
image: sverrirab/sleep
depends_on: [db, adminer, redis, redis-insights, webdb, maildev]
depends_on: [db, adminer, redis, redis-insights]
# Use `docker compose up frontend-dev --build --attach-dependencies` to start all services needed to work on the frontend.
frontend-dev:
-1
View File
@@ -8,7 +8,6 @@ export DEBUG_USE_SEED_DATA=True
export DEBUG_SKIP_TOXICITY_CALCULATION=True
export DEBUG_ALLOW_SELF_LABELING=True
export DEBUG_SKIP_EMBEDDING_COMPUTATION=True
export BACKEND_CORS_ORIGINS='["http://localhost:3000"]'
uvicorn main:app --reload --port 8080 --host 0.0.0.0
@@ -148,6 +148,9 @@ export const authOptions: AuthOptions = {
}
},
},
/*
* We maybe need this, we maybe don't. Checking in this uncommented until
* it's confirmed we can drop this.
cookies: {
sessionToken: {
name: `next-auth.session-token`,
@@ -159,6 +162,7 @@ export const authOptions: AuthOptions = {
},
},
},
*/
session: {
strategy: "jwt",
},
+2 -1
View File
@@ -11,7 +11,8 @@ import useSWR from "swr";
import useSWRImmutable from "swr/immutable";
const Dashboard = () => {
useSWR("http://localhost:8080/api/v1/auth/check", get);
// Adding a demonstrative call to the backend that includes the web's JWT.
useSWR(`${process.env.BACKEND_URL}/api/v1/auth/check`, get);
const { data } = useSWRImmutable<AvailableTasks>("/api/available_tasks", get);