Skip to content

Commit

Permalink
null/undefined do not override values, we have to omit them from …
Browse files Browse the repository at this point in the history
…`default.ts`
  • Loading branch information
Lordfirespeed committed Oct 29, 2024
1 parent 026da66 commit 0e189d6
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
2 changes: 0 additions & 2 deletions server/config/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export default {
options: {
cookieOptions: {
name: "durhack-megateams.x-csrf-token",
domain: "megateams.durhack-dev.com",
sameSite: "strict",
path: "/",
secure: false,
Expand All @@ -28,7 +27,6 @@ export default {
session: {
cookie: {
name: "durhack-megateams-session",
domain: "megateams.durhack-dev.com",
sameSite: "lax",
path: "/",
secure: false,
Expand Down
18 changes: 18 additions & 0 deletions server/config/development.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import type { DeepPartial } from "@server/types/deep-partial"
import type { ConfigIn } from "@server/config/schema"

export default {
csrf: {
options: {
cookieOptions: {
domain: "megateams.durhack-dev.com",
},
},
},
session: {
cookie: {
domain: "megateams.durhack-dev.com",
},
},
} satisfies DeepPartial<ConfigIn>

2 changes: 0 additions & 2 deletions server/config/production.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export default {
options: {
cookieOptions: {
name: "__Host-durhack-megateams.x-csrf-token",
domain: null,
path: "/",
secure: true,
sameSite: "strict",
Expand All @@ -19,7 +18,6 @@ export default {
session: {
cookie: {
name: "__Host-durhack-megateams-session",
domain: null,
path: "/",
secure: true,
sameSite: "lax",
Expand Down

0 comments on commit 0e189d6

Please sign in to comment.