howcaniexplain
howcaniexplain
WWasp-lang
Created by howcaniexplain on 7/15/2024 in #đŸ™‹questions
DATABASE_URL var not found when deploying to Fly.io
I'm deploying my first OpenSaaS Wasp app, but I'm running into the following error during the deployment process: [ Db !] Error: P1012 [ Db !] [ Db !] error: Environment variable not found: DATABASE_URL. [ Db !] --> schema.prisma:4 [ Db !] | [ Db !] 3 | provider = "postgresql" [ Db !] 4 | url = env("DATABASE_URL") [ Db !] | The app still deploys, and I see my client, server, and database listings on Fly, but the app, of course, isn't functional. I've tried changing my DATABASE_URL in env.server, adding my postgres url as a secret in Fly manually, etc, and have messed around with it quite a bit to no avail. Maybe (hopefully) I'm just making a very basic newbie mistake, but has anyone else faced this issue?
12 replies
WWasp-lang
Created by howcaniexplain on 6/10/2024 in #đŸ™‹questions
ERR_MODULE_NOT_FOUND due to double .js.js extension in name?
Have any of you had this error message before? Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/Users/howcaniexplain/Desktop/CodingProjects/Project/Project/app/.wasp/out/sdk/wasp/dist/ext-src/server/actions.js.js' imported from /Users/howcaniexplain/Desktop/CodingProjects/Project/Project/app/.wasp/out/sdk/wasp/dist/server/operations/actions/index.js I am recieving this error for queries and actions, where it seems to be looking for queries.js.js and actions.js.js instead of queries.js and actions.js. Actually going and manually changing both files to include the extra extension (ie making it queries.js.js and actions.js.js) actually fixed the error messge, but not really the ultimate issue as it is messy and Wasp created an additional copy of queries.js and actions.js now.
11 replies