Andersmmg
Andersmmg
Explore posts from servers
BABetter Auth
Created by Andersmmg on 5/21/2025 in #help
Setting baseUrl doesn't work when BETTER_AUTH_URL does
In my project, I have to specify the app url twice because I have the app url set as PUBLIC_URL and then I need to set BETTER_AUTH_URL as well to make better-auth work. I have tried setting it with baseUrl in the auth config, but the api always just gives a 404, even though it's set to the same url as the env variable.
2 replies
BABetter Auth
Created by Andersmmg on 5/8/2025 in #help
API calls for auth not working in docker container
I am using SvelteKit and I do have the hooks.server.ts file, and it works just fine using pnpm run dev and even when I build it and run pnpm run preview. When I build a docker image however, the app loads just fine and everything works except for the /api/auth calls. I try with curl even and I just get the 404 page response. I have the base url set to localhost:3000, I am exposing the 3000:3000 port so everything matches and still nothing. Any ideas why?
1 replies
DTDrizzle Team
Created by Andersmmg on 4/28/2025 in #help
Drizzle-kit push not creating new column
I have a basic schema for a user, which I set up the database for using drizzle-kit push. I added a new avatar field to the users, and tried to use push to update the schema, but instead got this: LibsqlError: SQLITE_ERROR: no such column: avatar Looking at the generated SQL it's trying to copy over the new column, and doesn't try to create it.
INSERT INTO `__new_users`("id", "name", "email", "avatar", "created_at") SELECT "id", "name", "email", "avatar", "created_at" FROM `users`;
INSERT INTO `__new_users`("id", "name", "email", "avatar", "created_at") SELECT "id", "name", "email", "avatar", "created_at" FROM `users`;
I'm not sure what I'm doing wrong, this seems very simple yet doesn't work.
1 replies