wardbox
WWasp-lang
•Created by wardbox on 11/2/2024 in #đŸ™‹questions
CORS is blocking www
www.dylankappler.com/:1 Access to XMLHttpRequest at 'https://devsite-server.fly.dev/operations/get-version' from origin 'https://www.dylankappler.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
when accessing my site at
www
i get this cors error.16 replies
WWasp-lang
•Created by wardbox on 10/28/2024 in #đŸ™‹questions
wasp db studio connecting to prod db shows now data
I've got my connection string in my env vars, and I can confirm that commenting it out connects me to my local db which does show data. I can also confirm I see data in my app deployed to fly.io.
24 replies
WWasp-lang
•Created by wardbox on 10/26/2024 in #đŸ™‹questions
wasp deploy fly deploy failure
Wasp version: 0.15.0
Platform: MacOS
I am using the wasp ts. Locally everything builds fine. I've tried doing
wasp clean
and wasp ts-setup
again with no luck.
61 replies
WWasp-lang
•Created by wardbox on 10/17/2024 in #đŸ™‹questions
Migrating from v0.14 to v0.15, entities not found
Seeing these errors after following migration steps to v0.15. It seems like issues with prisma not generating my entities.
25 replies
WWasp-lang
•Created by wardbox on 10/7/2024 in #đŸ™‹questions
AWS file upload query cache invalidation after creation
Using version 0.14.2 on MacOS
I have a query to get a team
And the team returns a logo (File) if there is one
I also have a form that uploads a file and uses an action to do it.
When I upload the file and connect it to the team, I expect the
getTeamById
query to invalidate the cache since I have the File entity in the query and the Team entity in the createFile
action. Right now when I upload a new photo, the query invalidates and errors out with a 404 from AWS because it can't find the file. If I do a full page refresh, it loads fine. Is there a way I could do a sleep or something to wait for it to finish uploading?14 replies
WWasp-lang
•Created by wardbox on 8/18/2024 in #đŸ™‹questions
how do I obtain a da boi plushy?
Where is the merch table at??
7 replies
WWasp-lang
•Created by wardbox on 7/26/2024 in #đŸ™‹questions
How do you handle pagination with Wasp's useQuery?
I'd like to paginate my query but not sure on syntax or if it is supported. I see there's an old issue from 2021 here https://github.com/wasp-lang/wasp/issues/264 curious if others have found a way around it
version: 0.14.0
5 replies
WWasp-lang
•Created by wardbox on 7/18/2024 in #đŸ™‹questions
Trying to run wasp over https locally, permission denied
I'm trying to run wasp over https locally to test oauth that requires https. I tried using the plugin-basic-ssl that comes with vite like so and it actually worked for a bit, but I had to run
sudo wasp start
to get it to work. When i tried running it again I got issues with not being able to find some of my modules and it seems something odd is happening when building wasp with sudo. If i run without sudo I just get this error:
my vite config that worked with sudo wasp start
9 replies
WWasp-lang
•Created by wardbox on 7/11/2024 in #đŸ™‹questions
Integrate custom oauth provider with wasp auth and session entities
I'm working on an app for League of Legends players. Riot Games provides Riot Sign On (RSO) so players can authenticate as their in-game account. Is there a way to do this with api endpoints or some other method since it isn't a supported auth method?
38 replies
WWasp-lang
•Created by wardbox on 7/4/2024 in #đŸ™‹questions
Configure vite to resolve @ alias to src directory
Tried configuring like this and vscode seems happy with the path resolution but wasp doesn't, what am I missing?
5 replies
WWasp-lang
•Created by wardbox on 5/9/2024 in #đŸ™‹questions
Is there a way to display a 404 for any routes not defined in main.wasp?
version: 0.13.2 on MacOS
16 replies
WWasp-lang
•Created by wardbox on 4/25/2024 in #đŸ™‹questions
Typescript not validating included relation
This is likely due to my inexperience with typescript, but I've been trying to access a related property that I've included on a query, but for some reason typescript isn't validating that it's a valid property. I think it only has scalar properties available.
gives this error:
I'd expect prisma and/or wasp handles the types when i run
wasp db migrate-dev
, is that not correct?23 replies