Wasp

W

Wasp

Join the community to ask questions about Wasp and get answers from other members.

Join

Help choosing ai image generation model

Hello guys. I have seen a couple project here built with wasp that involves image genaration. Never done it before and by doing some research i have found lots of models. So i am trying to narrow down my options. My use case: I want to generate images that illustrate scenarios related to to traffic rules, road signs, priority... school driving stuffs. And from that image user will have to answer whats happening in that feature, like which car should go first? The images can be 2D, since its whats present in most of the books, and quality just enough for one to see details like the sign, the road... Any siggestions? @Vinny (@Wasp) saw that you were doing a project that relates with image generation, can you please help me out here???...

Error when running wasp db migrate-dev

wasp db start works fine. but i can't get pass wasp db migrate-dev i am using WSL2...
No description

Need help integrating Starlight Blog with a multi-language Starlight site (EN/FR)

Hi everyone, I’m using Starlight in a multi-language setup (English and French), and everything works great as long as I only use Starlight. However, as soon as I try to incorporate starlight-blog, I run into various issues: 404 errors on the translated version, the blog layout not showing up correctly, etc. I’ve tried different folder structures and adjusted my astro.config.mjs and content.config.ts files, but I can’t seem to get everything working together. ...

Error: Blocked request. This host is not allowed.

To allow this host, add to server.allowedHosts in vite.config.js.

Different ways to get the sessionId for a custom API call

I need to attach the Bearer authorization header to a custom API call. I am currently getting the wasp:sessionId from localstorage, which is not ideal. If I'm not mistaken there was an endpoint to fetch the sessionId from the backend? What is the call/endpoint again?...

Non-Dev question about APIs

I'm developing an app which will receive calls and return things to an extension. I have all the UI of my app and all the corresponding operations and queries to make it work as I want. In the extension I only have the UI and I want to implement APIs to complete its functionality....

New opensaas walkthrough vid needed.

Opensaas devs please do a new walkthrough detailing how to personalize the opensaas template and detail debugging steps for whatever errors may arise. Integration of an llm other than openai's chatgpt llm would also be helpful as it would be so easy to deploy a useful saas if only the learning curve wasn't so steep. If I have a guide start to finish with debugging examples I would be good.

static image reference in main.wasp

how do i reference static images in main.wasp? I want to populate the head property with some meta tags, that reference an image i have stored in app/src/client/static. i tried the below approach, but this did not work...

Encrypting email address in db with Email Auth

Wasp/OpenSaas newbie here. I've privacy conscious users and want to show I'm taking steps to protect stored personally identifiable information. This means encrypting their login email address in the DB. Is there a way to do this by injecting custom logic/overriding functions in the right places in the email auth provider so I'm not covering the same ground? Or am I going to have to write a whole auth flow to do what I want? I'd like users to still able to easily request a password reset and stuff, which is why I don't want to swap to the username auth. I think the overall approach should work because any time we need to email the user, they're inputting their email address anyway....

Change LoginSignupForm

Hey there, how can I change the UI for the Login/Signup form in WASP (the built-in one) .

Has there been any work done to SEO optimize the OpenSaaS landing page?

Specifically, I'm wondering if there's any projects that have done the following: - Set up sitemap generation - Configure robots.txt - Implement schema markup...

Property does not exist on type

I'm missing something adding new vars in 0.16.2? (was already declared in the template) `const openaiApi = new openai.OpenAI({ apiKey: env.OPENAI_API_KEY,...

Best practices to verify files before uploading to S3?

I want users to upload pdf files and i want to verify the integrity of those files and their content before uploading but i don't know how, what are the best practices to do so?

Setting up Cors in 0.16.0

I had cors middleware config working in 0.14.0. No longer working after upgrading to 0.16.0. How do I set up cors config to work with lates WASP version?

Generate User API Key for external calls

How a user in my app could create a token to make API calls from the outside?

is there a way how to trigger the socket.io in action

i want to have action and also a way to trigger websocket or socket.io just by triggering the action and not action or socket.io/websocket

Best way to implement custom LDAP authentication in Wasp

Hi everyone, I’m considering implementing a custom authentication method in Wasp using LDAP, but I’m not sure if it’s the right approach. I know that Wasp provides built-in authentication, and I’ve seen that there’s an onBeforeLogin hook that I could potentially use for this with the usernameAndPassword-method. However, that feels like a bit of a hack, and I’d rather follow a proper approach if one exists. Can someone guide me in the right direction?...

Mobile app

Wasp: 0.13.x Hello, I am planning to make a native app for my platform, and since actions and queries relies on context, I am not sure if there is a way to be able to make it as API calls, so it can be implemented in a native mobile app. Any idea how could this be done? The platform uses lots of actions and queries. Would be the only solution to make API calls for each one of the actions and queries already implemented?...

Email does not work after deployment

I have tried Mailgun, Sendgrid, and SMTP (from Sendgrid). All of these options send email just fine on my local machine. Once I deploy to Fly.io, no emails get sent. I have ensured all server environment variables are set through Fly.io secrets. I have verified they are there. I have re-deployed many times after setting the secrets. Nothing seems to have any effect whatsoever. I get no errors from the client side, and no network errors....

Realtime

How to do realtime queries