Skip to content

Commit

Permalink
ok bro
Browse files Browse the repository at this point in the history
  • Loading branch information
dromzeh committed Apr 4, 2024
1 parent d96c3e5 commit b22112e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
5 changes: 2 additions & 3 deletions src/v2/db/turso.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,10 @@ export function getConnection(env: Bindings) {
* The `url` option is set to the `TURSO_DATABASE_URL` environment variable.
* The `authToken` option is set to the `TURSO_DATABASE_AUTH_TOKEN` environment variable.
**/
const isDev = env.ENVIRONMENT !== "PROD"

const turso = createClient({
url: isDev ? "http://127.0.0.1:8080" : env.TURSO_DATABASE_URL!,
authToken: isDev ? undefined : env.TURSO_DATABASE_AUTH_TOKEN!,
url: env.TURSO_DATABASE_URL!,
authToken: env.TURSO_DATABASE_AUTH_TOKEN!,
})

/**
Expand Down
4 changes: 2 additions & 2 deletions src/v2/lib/auth/lucia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ export function luciaAuth(env: Bindings) {
// plus i feel this is better user experience in general lol
expires: false,
attributes: {
secure: env.ENVIRONMENT === "PROD",
sameSite: env.ENVIRONMENT === "PROD" ? "strict" : "lax",
secure: true,
sameSite: "strict",
path: "/",
},
},
Expand Down
5 changes: 3 additions & 2 deletions wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ workers_dev = true

[[r2_buckets]]
binding = 'FILES_BUCKET'
bucket_name = 'files'
preview_bucket_name = 'files'
bucket_name = 'files-wanderer-moe'
preview_bucket_name = 'files-wanderer-moe'
jurisdiction = 'eu'

[durable_objects]
bindings = [
Expand Down

0 comments on commit b22112e

Please sign in to comment.