Sam Whitmore
CCConvex Community
•Created by Sam Whitmore on 7/11/2024 in #support-community
Convex Auth: Implementation with Svelte(Kit)
Until Convex Auth is available to Svelte users, you can use Clerk as a substitute for authentication purposes – that's worked great for me, anyway 🙂
18 replies
CCConvex Community
•Created by Sam Whitmore on 7/11/2024 in #support-community
Convex Auth: Implementation with Svelte(Kit)
It's just the Auth aspect where they're prioritising React usability (which makes sense due to the ecosystem's size)
18 replies
CCConvex Community
•Created by Sam Whitmore on 7/11/2024 in #support-community
Convex Auth: Implementation with Svelte(Kit)
Convex and Svelte do work really well together!
18 replies
CCConvex Community
•Created by Sam Whitmore on 7/11/2024 in #support-community
Convex Auth: Implementation with Svelte(Kit)
Whenever Convex Auth supports Svelte(Kit), I'll be in there right away
18 replies
CCConvex Community
•Created by Sam Whitmore on 7/11/2024 in #support-community
Convex Auth: Implementation with Svelte(Kit)
I cant wait for Svelte5 to formally release along with a fresh tutorial to introduce Svelte with! I feel like I'm caught between two world atm; but, regardless, I'm not turning my back on the language – just steadily slogging my way through the confusion
18 replies
CCConvex Community
•Created by Sam Whitmore on 7/12/2024 in #support-community
Q: Marking a Path as External
I've been able to set up an initial mutation to insert my user's survey response which then triggers an internalAction to fetch the Weather API data which triggers an internalMutation to patch the initial insertion with the contextual weather data.
Thank you so much!
51 replies
CCConvex Community
•Created by Sam Whitmore on 7/12/2024 in #support-community
Q: Marking a Path as External
Tom, you're a legend
51 replies
CCConvex Community
•Created by Sam Whitmore on 7/12/2024 in #support-community
Q: Marking a Path as External
How can I plug my WEATHER_API_KEY (now stored within my convex dashboard) within my action that I'm writing?
51 replies
CCConvex Community
•Created by Sam Whitmore on 7/12/2024 in #support-community
Q: Marking a Path as External
hahaha after all that, my console is now asking me to place the fetch within an Action rather than within my queries/mutations
51 replies
CCConvex Community
•Created by Sam Whitmore on 7/12/2024 in #support-community
Q: Marking a Path as External
man, coding is such a cooll hobby
51 replies
CCConvex Community
•Created by Sam Whitmore on 7/12/2024 in #support-community
Q: Marking a Path as External
THATS SO ELEGANT
51 replies
CCConvex Community
•Created by Sam Whitmore on 7/12/2024 in #support-community
Q: Marking a Path as External
Should I (re)write it within
convex/responses.ts
since that's where my mutation function is that adds each survey response?51 replies
CCConvex Community
•Created by Sam Whitmore on 7/12/2024 in #support-community
Q: Marking a Path as External
man, this is frustrating hahaha
51 replies
CCConvex Community
•Created by Sam Whitmore on 7/12/2024 in #support-community
Q: Marking a Path as External
It's a repeated survey where each response fetches the user's local weather data as context for their response, so it's quite possible that I'll want to include the weather data on each submission and also whenever the user is signed in (without responing to the survey) too
51 replies
CCConvex Community
•Created by Sam Whitmore on 7/12/2024 in #support-community
Q: Marking a Path as External
or can I throw an WEATHER_API_KEY || PUBLIC_WEATHER_API_KEY (for argument's sake)
51 replies
CCConvex Community
•Created by Sam Whitmore on 7/12/2024 in #support-community
Q: Marking a Path as External
Is it worth writing the code twice then, once for each format?
51 replies
CCConvex Community
•Created by Sam Whitmore on 7/12/2024 in #support-community
Q: Marking a Path as External
I suppose I ought to remove it from $lib
51 replies
CCConvex Community
•Created by Sam Whitmore on 7/12/2024 in #support-community
Q: Marking a Path as External
oh hahaha within a folder/folder/file titled
$lib/api/weather.ts
51 replies
CCConvex Community
•Created by Sam Whitmore on 7/12/2024 in #support-community
Q: Marking a Path as External
I'm now getting a 500 error because 'process is not defined'
51 replies
CCConvex Community
•Created by Sam Whitmore on 7/12/2024 in #support-community
Q: Marking a Path as External
am I still importing this at the top of my function:
import { WEATHER_API_KEY } from 'process.env';
or is it more of a:
type of deal?51 replies