KC
WWasp-lang
•Created by KC on 8/9/2024 in #🙋questions
A possible bug: wasp deploy fly deploy resets the server URL
Hello Waspeteers! 👋
When we use the
wasp deploy fly deploy
command, it looks like the server URL (env variable when building the client here: https://github.com/wasp-lang/wasp/blob/8d5530519bb5e99ec7d87caf3c807785f19954dc/waspc/packages/deploy/src/providers/fly/deploy/deploy.ts#L107) is being derived from the base name (https://github.com/wasp-lang/wasp/blob/8d5530519bb5e99ec7d87caf3c807785f19954dc/waspc/packages/deploy/src/providers/fly/DeploymentInfo.ts#L30). Can we override this somehow? We are using the deploy-action (https://github.com/wasp-lang/deploy-action) in our CI and our server URL is api.schooltendance.com
. This gets reset to the fly.dev
URL every time we 🚢.12 replies
WWasp-lang
•Created by KC on 8/5/2024 in #🙋questions
redirect incoming request to a path with a new header
Is there a way to redirect a request coming to a path like
/blog*
? I am trying to add an Astro blog to our app which will be on a different machine. So all requests to /blog need to be routed to the Astro machine. I am using Fly so there is an easy way to do this using the Fly-Replay
header.
Here's the implementation in Express
app.all('/blog*', function replayToBlog(req, res) {
res.set('Fly-Replay', 'app=fly-replay-blog')
res.status(204).send('')
})14 replies
WWasp-lang
•Created by KC on 6/18/2024 in #🙋questions
How do I debug why an actions endpoint is returning a 404?
Here's what I am seeing in the logs for the server
2024-06-18T10:00:10Z app[redacted] sin [info]GET /auth/me 304 5.758 ms - -
2024-06-18T10:00:10Z app[redacted] sin [info]POST /operations/update-current-user 404 0.332 ms - 170
However, this was working when tested locally. The auth seems to be working fine, so I don't think it is a DB connection issue.
I am also seeing this after a deploy:
redacted
2024-06-18T16:42:41Z app[redacted] sin [info]🔍 Validating environment variables...
2024-06-18T16:42:42Z app[redacted] sin [info]🚀 "Email and password" auth initialized
2024-06-18T16:42:42Z app[redacted] sin [info]Server listening on port 8080
I am using the same update user action as defined in the OpenSaaS template.
15 replies
WWasp-lang
•Created by KC on 6/12/2024 in #🙋questions
Should the `/login` route respect the `onAuthSucceededRedirectTo` when the user visits `/login`?
When the user first logs in from the login route, they are redirected to the path set in
onAuthSucceededRedirectTo
. However, when the user is already logged in and visits the login route path /login
, they are redirected to /
.
I am using email auth if that helps.9 replies
WWasp-lang
•Created by KC on 4/17/2024 in #🙋questions
Is there an easy way to use another Tailwind Component Library or shadcn?
I tried setting up daisyui with the existing CSS and it messed up everything. I am wondering if there is an easy way to do this. I am okay to even just use something like shadcn/ui where we can copy paste code but it does require some setup - https://ui.shadcn.com/docs/installation/next. Please ignore my inexperience with React/NextJS. I primarily do backend work and this is my first time working with React.
21 replies