Nick
Nick
Explore posts from servers
KPCKevin Powell - Community
Created by Nick on 9/21/2024 in #back-end
Can't connect to my Postgres instance from my app
yeah, think it was just some weirdness with payload's postgres adapter. i ditched payload anyway after getting it set up. was disappointed that they added postgres but everything was still very much document based. thanks for the reply though ๐Ÿ™‚
4 replies
KPCKevin Powell - Community
Created by raul-barriga on 9/15/2024 in #back-end
sendgrid email
Not sure if it will help (as from memory I think I'm using the web api as opposed to their normal api), but this is what I do:
const emailMessage = {
personalizations: [{
to: [
{email: import.meta.env.TARGET_EMAIL, name: "Target"},
{email: import.meta.env.CC_EMAIL, name: "CC"}
],
}],
from: {email:import.meta.env.MY_EMAIL, name:"The Server"},
replyTo: {email:email},
subject: `ENQUIRY from ${fName} ${sName}`,
content: [
{
type: 'text/html',
value: `${message}`,
},
],
}
const emailMessage = {
personalizations: [{
to: [
{email: import.meta.env.TARGET_EMAIL, name: "Target"},
{email: import.meta.env.CC_EMAIL, name: "CC"}
],
}],
from: {email:import.meta.env.MY_EMAIL, name:"The Server"},
replyTo: {email:email},
subject: `ENQUIRY from ${fName} ${sName}`,
content: [
{
type: 'text/html',
value: `${message}`,
},
],
}
2 replies
KPCKevin Powell - Community
Created by Nick on 8/15/2024 in #front-end
Not sure how to make this hero text animation responsive
All fixed, used a clip path instead ๐Ÿ‘
2 replies
KPCKevin Powell - Community
Created by Nick on 7/23/2024 in #back-end
Does anyone use Drizzle here? Many-to-Many relationships and types
Yeah that's the conclusion I came to as well last night, ended up brushing up on my joins ๐Ÿ™‚ Thanks for your help
12 replies
KPCKevin Powell - Community
Created by Nick on 7/23/2024 in #back-end
Does anyone use Drizzle here? Many-to-Many relationships and types
hi @แผ”ฯฯ‰ฯ‚, yeah I guess I was just expecting the convenience that you get with that Sequelize example (where you can access the other side of the M:N relationship because you've specified the join table in the relationship itself). I guess it's doing work behind the scenes to mutate and flatten the data. It also confused me because there's a Drizzle youtube tutorial that looks to be doing exactly that, but I must be missing something about his code But you're right, that's definitely not how sql works!
12 replies
KPCKevin Powell - Community
Created by Nick on 6/1/2024 in #front-end
Intrinsic image sizes
skill mate, not luck ๐Ÿ˜‰
118 replies
KPCKevin Powell - Community
Created by Nick on 6/1/2024 in #front-end
Intrinsic image sizes
yeah, thought your answer was on the money tbf ๐Ÿ‘
118 replies
KPCKevin Powell - Community
Created by Nick on 6/1/2024 in #front-end
Intrinsic image sizes
i usually just use css too!
118 replies
KPCKevin Powell - Community
Created by Nick on 6/1/2024 in #front-end
Intrinsic image sizes
yeah I hadn't thought about distinguishing between the html element and the JS that represented it
118 replies
KPCKevin Powell - Community
Created by Nick on 6/1/2024 in #front-end
Intrinsic image sizes
ah ok, that makes sense
118 replies
KPCKevin Powell - Community
Created by Nick on 6/1/2024 in #front-end
Intrinsic image sizes
yeah i think it's intrinsic. i'll have to play with the natural width/height property that was mentioned too
118 replies
KPCKevin Powell - Community
Created by Nick on 6/1/2024 in #front-end
Intrinsic image sizes
i've actually quite enjoyed it so far tbf
118 replies
KPCKevin Powell - Community
Created by Nick on 6/1/2024 in #front-end
Intrinsic image sizes
yeah you're probably right!
118 replies
KPCKevin Powell - Community
Created by Nick on 6/1/2024 in #front-end
Intrinsic image sizes
Understand what you're getting at RE Js width and height - those are definitely rendered. But the Nextjs Image component is surely equivalent to the html img tag?
118 replies
KPCKevin Powell - Community
Created by Nick on 6/1/2024 in #front-end
Intrinsic image sizes
No description
118 replies
KPCKevin Powell - Community
Created by Nick on 6/1/2024 in #front-end
Intrinsic image sizes
are you sure? it says they're required props
118 replies
KPCKevin Powell - Community
Created by Nick on 6/1/2024 in #front-end
Intrinsic image sizes
especially as I've seen teachers use it in that way (and it seemingly working)
118 replies
KPCKevin Powell - Community
Created by Nick on 6/1/2024 in #front-end
Intrinsic image sizes
that's true, like i said, it just confused the hell out of me ๐Ÿ˜„
118 replies
KPCKevin Powell - Community
Created by Nick on 6/1/2024 in #front-end
Intrinsic image sizes
ah ok
118 replies