sanser
sanser
Explore posts from servers
CDCloudflare Developers
Created by sanser on 6/7/2024 in #pages-help
some peer dependencies are incorrectly met with sveltekit
anyone facing this issue, the yarn version should be YARN_VERSION = 1.22 :)
4 replies
CDCloudflare Developers
Created by sanser on 6/7/2024 in #pages-help
some peer dependencies are incorrectly met with sveltekit
11:56:41.769 ➤ YN0000: └ Completed in 5s 780ms
11:56:41.809 ➤ YN0000: ┌ Post-resolution validation
11:56:41.809 ➤ YN0028: │ The lockfile would have been modified by this install, which is explicitly forbidden.
11:56:41.810 ➤ YN0000: └ Completed
11:56:41.810 ➤ YN0000: Failed with errors in 5s 822ms
11:56:41.858 Error: Exit with error code: 1
11:56:41.858 at ChildProcess.<anonymous> (/snapshot/dist/run-build.js)
11:56:41.858 at Object.onceWrapper (node:events:652:26)
11:56:41.859 at ChildProcess.emit (node:events:537:28)
11:56:41.859 at ChildProcess._handle.onexit (node:internal/child_process:291:12)
11:56:41.869 Failed: build command exited with code: 1
11:56:43.368 Failed: error occurred while running build command
11:56:41.769 ➤ YN0000: └ Completed in 5s 780ms
11:56:41.809 ➤ YN0000: ┌ Post-resolution validation
11:56:41.809 ➤ YN0028: │ The lockfile would have been modified by this install, which is explicitly forbidden.
11:56:41.810 ➤ YN0000: └ Completed
11:56:41.810 ➤ YN0000: Failed with errors in 5s 822ms
11:56:41.858 Error: Exit with error code: 1
11:56:41.858 at ChildProcess.<anonymous> (/snapshot/dist/run-build.js)
11:56:41.858 at Object.onceWrapper (node:events:652:26)
11:56:41.859 at ChildProcess.emit (node:events:537:28)
11:56:41.859 at ChildProcess._handle.onexit (node:internal/child_process:291:12)
11:56:41.869 Failed: build command exited with code: 1
11:56:43.368 Failed: error occurred while running build command
4 replies
CDCloudflare Developers
Created by sanser on 6/7/2024 in #pages-help
some peer dependencies are incorrectly met with sveltekit
YN0000: ┌ Resolution step
11:56:37.472 ➤ YN0032: │ fsevents@npm:2.3.3: Implicit dependencies on node-gyp are discouraged
11:56:37.693 ➤ YN0061: │ npmlog@npm:5.0.1 is deprecated: This package is no longer supported.
11:56:37.714 ➤ YN0061: │ glob@npm:7.2.3 is deprecated: Glob versions prior to v9 are no longer supported
11:56:37.867 ➤ YN0061: │ rimraf@npm:3.0.2 is deprecated: Rimraf versions prior to v4 are no longer supported
11:56:37.887 ➤ YN0061: │ are-we-there-yet@npm:2.0.0 is deprecated: This package is no longer supported.
YN0000: ┌ Resolution step
11:56:37.472 ➤ YN0032: │ fsevents@npm:2.3.3: Implicit dependencies on node-gyp are discouraged
11:56:37.693 ➤ YN0061: │ npmlog@npm:5.0.1 is deprecated: This package is no longer supported.
11:56:37.714 ➤ YN0061: │ glob@npm:7.2.3 is deprecated: Glob versions prior to v9 are no longer supported
11:56:37.867 ➤ YN0061: │ rimraf@npm:3.0.2 is deprecated: Rimraf versions prior to v4 are no longer supported
11:56:37.887 ➤ YN0061: │ are-we-there-yet@npm:2.0.0 is deprecated: This package is no longer supported.
4 replies
DTDrizzle Team
Created by sanser on 4/4/2024 in #help
Error: SASL: SCRAM-SERVER-FINAL-MESSAGE: server signature is missing
"postgres://postgres.bigtestington:bigidiot@@aws-0-ap-southeast-1.pooler.supabase.com:6543/postgres" like this ^
3 replies
DTDrizzle Team
Created by sanser on 4/4/2024 in #help
Error: SASL: SCRAM-SERVER-FINAL-MESSAGE: server signature is missing
edit: i fixed the issue, seems like i had an issue with the speical charcters, i have an @ at the end of my password so i needed two of them 🤦
3 replies
DTDrizzle Team
Created by sanser on 3/29/2024 in #help
better way to check truthy / falsey from select
like .empty()
5 replies
DTDrizzle Team
Created by sanser on 3/29/2024 in #help
better way to check truthy / falsey from select
just hoping there would he a nice wrapper around this
5 replies
DTDrizzle Team
Created by sanser on 3/29/2024 in #help
better way to check truthy / falsey from select
ye this works too
5 replies
DTDrizzle Team
Created by sanser on 11/15/2023 in #help
Using cloudflare pages postgres and lucia
then if i use import {sql} from '@vercel/postgres' it builds!!!! but then i get ReferenceError: process is not defined error when hitting my endpoints which interact with the database
4 replies
DTDrizzle Team
Created by sanser on 11/15/2023 in #help
Using cloudflare pages postgres and lucia
my database is neon but i will use move this to AWS once testing is complete
4 replies
DTDrizzle Team
Created by sanser on 11/15/2023 in #help
Using cloudflare pages postgres and lucia
import { pg as PostgresAdapter } from '@lucia-auth/adapter-postgresql';
import * as schema from '$lib/db/schema';

import { createPool } from '@vercel/postgres';
import { drizzle } from 'drizzle-orm/vercel-postgres';

const sqlClient = createPool({ connectionString: DATABASE_URL });

const db = drizzle(sqlClient, { schema });

export const auth = lucia({
adapter: PostgresAdapter(sqlClient, {
user: 'auth_user',
key: 'user_key',
session: 'user_session'
}),
import { pg as PostgresAdapter } from '@lucia-auth/adapter-postgresql';
import * as schema from '$lib/db/schema';

import { createPool } from '@vercel/postgres';
import { drizzle } from 'drizzle-orm/vercel-postgres';

const sqlClient = createPool({ connectionString: DATABASE_URL });

const db = drizzle(sqlClient, { schema });

export const auth = lucia({
adapter: PostgresAdapter(sqlClient, {
user: 'auth_user',
key: 'user_key',
session: 'user_session'
}),
4 replies