miho
miho
Explore posts from servers
WWasp-lang
Created by xyntherys on 11/9/2024 in #đŸ™‹questions
Manually deleted all Sessions for an user from DB. Unable to login with Google (login-logout loop)
This sounds really curious. Thank you for the steps, I'll try to reproduce and report back đŸ™‚
23 replies
WWasp-lang
Created by Sven on 11/14/2024 in #đŸ™‹questions
Do i need to set client env vars every deploy?
We appreciate the kind words đŸ™‚ if you want to show your support by buying us a cup of coffee, we have Github Sponsors set up: https://github.com/sponsors/wasp-lang
15 replies
WWasp-lang
Created by Sven on 11/14/2024 in #đŸ™‹questions
Do i need to set client env vars every deploy?
You are, thanks for the contribution đŸ™‚ If you want - you can write a step-by-step instructions in a github gist or smth, we can add it to https://github.com/wasp-lang/learning-materials/
15 replies
WWasp-lang
Created by Sven on 11/14/2024 in #đŸ™‹questions
Do i need to set client env vars every deploy?
1. Adding .env.client won't do anything since that file is only used in development and not while building your app 2. The second bit sounds more promising to me
env:
REACT_APP_GOOGLE_ANALYTICS_ID: ${{ secrets.GOOGLE_ANALYTICS_ID }}
env:
REACT_APP_GOOGLE_ANALYTICS_ID: ${{ secrets.GOOGLE_ANALYTICS_ID }}
Have you tested the env approach? Did it work for you? đŸ™‚
15 replies
WWasp-lang
Created by chilled_techie on 11/15/2024 in #đŸ™‹questions
Landing Page doesn't display
@chilled_techie did you try this? sometimes ad blockers mess the template (we'll fix this in the next iteration) but for now you should disable the ad blocker for localhost
13 replies
WWasp-lang
Created by Joaquim on 11/15/2024 in #đŸ™‹questions
Adding svgr plugin to the vite config
This is something I'd need to test out and see what happens. Could you share your Vite config file and some example of using the SVG images? đŸ™‚
7 replies
WWasp-lang
Created by chilled_techie on 11/15/2024 in #đŸ™‹questions
Landing Page doesn't display
Could check the terminal to see on which port is the client running?
13 replies
WWasp-lang
Created by LifeTaker on 11/14/2024 in #đŸ™‹questions
Changing the color of the text in the Login/signup/ forgetpass pages.
You could use CSS to target specific elements e.g. wrap the form with some known class and then target the correct text. Let me know if you need more details. @kapa.ai show us an example of that
10 replies
WWasp-lang
Created by cking!M on 11/14/2024 in #đŸ™‹questions
Uploading files to server
@Vinny (@Wasp) maybe one for you
7 replies
WWasp-lang
Created by Sven on 11/14/2024 in #đŸ™‹questions
Do i need to set client env vars every deploy?
The short answer is "yes". You can put the deployment commend into the package.json script as deploy so you can run it with npm run deploy and you can then always run the correct command.
15 replies
WWasp-lang
Created by IT Father on 10/25/2024 in #đŸ™‹questions
Google oAuth issue on production
You could have pointed it to the custom domain - but you'd need to update all the env vars using the server URL
17 replies
WWasp-lang
Created by NEROX on 11/14/2024 in #đŸ™‹questions
Navigating with /names/ instead /ids/
Smth like this
const posts = await prisma.post.findMany({
where: {
userId: context.user.id
},
include: {
comments: true,
categories: true
}
})
const posts = await prisma.post.findMany({
where: {
userId: context.user.id
},
include: {
comments: true,
categories: true
}
})
14 replies
WWasp-lang
Created by NEROX on 11/14/2024 in #đŸ™‹questions
Navigating with /names/ instead /ids/
In your Prisma queries, it's key to put the where blocks that filter the data per user đŸ™‚ it doesn't happen automatically
14 replies
WWasp-lang
Created by VS on 11/14/2024 in #đŸ™‹questions
Newsletter/TemplateId
Hey has this been solved or will this just be closed as not possible? I was trying to use templateId, I guess I could just make a html but would be cooler if I could use templateId from SendGrid.
Using templateId with SendGrid is an open issue for us https://github.com/wasp-lang/wasp/issues/1553
Also about creating a newsletter, I still think this would be cleaner if I did this via sendgrid or hubspot or?
We don't really have any official recommendation, I'd say using a dedicated service for the newsletter sounds cleaner to me - you'll get nicer tooling and you won't build many things yourself. @matijash might have some suggestions for which newsletter service to use
6 replies
WWasp-lang
Created by john on 11/14/2024 in #đŸ™‹questions
how to customize the signup verification logic in the version 0.11.8?
I'm using version 0.11.8 so, when I try to create a user with email which already then it shows the message that signup is successful, instaed I want error message,
Bot gave an okay answer, you can't change that logic without going full custom with the signup flow. We have docs for version 0.11.8, have you read those? https://wasp-lang.dev/docs/0.11.8 đŸ™‚ Here is the revelant bit: https://wasp-lang.dev/docs/0.11.8/auth/overview#customizing-the-signup-process I'd generally suggest upgrading since 0.11.8 is an old version with outdated dependencies.
19 replies
WWasp-lang
Created by john on 11/14/2024 in #đŸ™‹questions
how to customize the signup verification logic in the version 0.11.8?
There is no need to tag the team - we'll pick it up when we see it đŸ™‚
19 replies
WWasp-lang
Created by NEROX on 11/14/2024 in #đŸ™‹questions
Navigating with /names/ instead /ids/
The route is /subject/:something/grades that :something can be any string - so if you build you URLs to include maths instead of an ID - it will work - but you'll need to then fetch what you need by the name instead the ID. There are no limitations here AFAIK đŸ™‚
14 replies
WWasp-lang
Created by Bomi on 11/13/2024 in #đŸ™‹questions
Fetching Emails
Can a human assist with something? đŸ™‚ I'd recommend tostart with understanding the available auth hooks: https://wasp-lang.dev/docs/auth/auth-hooks#supported-hooks and how to configure Google OAuth provider: https://wasp-lang.dev/docs/auth/social-auth/google#overrides 0. You'll need to set up the OAuth client to have the correct access rights and include those in the configFn scopes field 1. You'll probably want to use onAfterSignup hook to get the refresh token / access token. 2. You'll probably want to refresh the access token with an async job to keep it fresh 3. Then you'll have a valid access token - you'll use that with the Google API
33 replies
WWasp-lang
Created by NEROX on 11/6/2024 in #đŸ™‹questions
Error calculating daily stats Production
Which part don't you understand? The looking up the JS bundle in the Network tab or going through the JS bundle? đŸ˜„
71 replies
WWasp-lang
Created by Bomi on 11/13/2024 in #đŸ™‹questions
Fetching Emails
fetching emails (gmail) to be displayed
Which kind of emails are you talking about? Like fetching emails your received in Gmail?
33 replies