Skip to content

Commit

Permalink
fix page titles not showing up (#111)
Browse files Browse the repository at this point in the history
* fix page titles not showing up

* lint
  • Loading branch information
cmintey committed Mar 30, 2024
1 parent 765d85c commit 89ddcd8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/BackButton.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
const disabledUrls = [
"/login",
"/signup",
"/",
/^\/$/,
"/forgot-password",
"/reset-password",
"/group-error",
Expand Down
4 changes: 3 additions & 1 deletion src/lib/server/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ import { Lucia } from "lucia";
import { PrismaAdapter } from "@lucia-auth/adapter-prisma";
import { dev } from "$app/environment";
import { client } from "./prisma";
import { env } from "$env/dynamic/private";

const adapter = new PrismaAdapter(client.session, client.user);

const origin = new URL(env.ORIGIN || "localhost:3280");
export const auth = new Lucia(adapter, {
sessionCookie: {
attributes: {
secure: !dev,
secure: !dev && origin.protocol === "https:",
path: "/"
}
},
Expand Down
2 changes: 1 addition & 1 deletion src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
const titleDisabledUrls = [
"/login",
"/signup",
"/",
/^\/$/,
"/forgot-password",
"/reset-password",
"/group-error",
Expand Down

0 comments on commit 89ddcd8

Please sign in to comment.