Kynetix
WWasp-lang
•Created by Kynetix on 10/28/2024 in #đŸ™‹questions
Display app version in UI
Thanks, @martinsos that was it.
export const getAppVersion = () => {
return process.env.npm_package_version;
} // works great. Thanks a lot
14 replies
WWasp-lang
•Created by Kynetix on 10/28/2024 in #đŸ™‹questions
Display app version in UI
@kapa.ai thanks for the feedback. Is there an alternate way to track the app's version? I want to be maintaining the versions when I publish to git, and have the version number displayed on the UI. It doesn't have to be in package.json
14 replies
WWasp-lang
•Created by Kynetix on 10/23/2024 in #đŸ™‹questions
File is not defined
I'm guessing you guys are the developers of Wasp? Great job guys!!
23 replies
WWasp-lang
•Created by Kynetix on 10/23/2024 in #đŸ™‹questions
File is not defined
Ah, interesting. So do you plan to implement node 20+ in a future version? (Speaking of, when's the next OpenSaas version coming out? đŸ™‚ )
23 replies
WWasp-lang
•Created by Kynetix on 10/23/2024 in #đŸ™‹questions
File is not defined
I use node v20.11.1.
23 replies
WWasp-lang
•Created by Kynetix on 10/23/2024 in #đŸ™‹questions
File is not defined
Following Kapa's suggestion, I googled "node-file" and came across "formdata-node" with some sample code, so I tried it and it worked.
23 replies
WWasp-lang
•Created by Kynetix on 10/23/2024 in #đŸ™‹questions
File is not defined
By the way, importing formdata-node solved the File issue.
23 replies
WWasp-lang
•Created by Kynetix on 10/23/2024 in #đŸ™‹questions
File is not defined
Thanks @Vinny (@Wasp), I'll give it a shot.
Meanwhile, do you have a better way to implement it? The application is a document chatbot where the user uploads a file (Word doc, PDF, XLS, etc) and its content is read and stored in Supabase vector store.
23 replies
WWasp-lang
•Created by otrojka on 6/29/2024 in #đŸ™‹questions
Dependency issue with fly.io server deploy
Has anyone been able to resolve that issue? I'm trying to deploy my OpenSaas app to Railway from my macbook, but when I run "railway up", I get the error "Error: Cannot find module '@node-rs/argon2-linux-x64-musl'"
14 replies
WWasp-lang
•Created by Kynetix on 10/18/2024 in #đŸ™‹questions
PayloadTooLargeError
I'm not uploading the file to S3 - I just upload it so as to read it into Supabase, so no need to store it anywhere.
27 replies
WWasp-lang
•Created by Kynetix on 10/18/2024 in #đŸ™‹questions
PayloadTooLargeError
Thanks again, @kapa.ai I've made the update and the " PayloadTooLargeError: request entity too large" error persists. Do I need to make any changes to the frontend or backend? Right now, the frontend calls an uploadDocument() function in the operations.ts, passing the file and metadata, etc.
27 replies
WWasp-lang
•Created by Kynetix on 10/18/2024 in #đŸ™‹questions
PayloadTooLargeError
Thanks @kapa.ai that fixed it (the missing 'return'). However when I try to upload, I still get the PayloadTooLargeError. Is there a way to confirm that multer is correctly configured?
27 replies
WWasp-lang
•Created by Kynetix on 10/18/2024 in #đŸ™‹questions
PayloadTooLargeError
@kapa.ai I've set it up as suggested, by adding the export const serverMiddlewareFn() to serverSetup.js, and adding it as a server:{} attribute in main.wasp. When I run it, I get the error " TypeError: Cannot read properties of undefined (reading 'values')" at globalMiddlewareConfigForExpress () in globalMiddleware.ts.
27 replies
WWasp-lang
•Created by Kynetix on 10/18/2024 in #đŸ™‹questions
PayloadTooLargeError
@kapa.ai thanks for the suggestion. Where would I put that code from above? In the operations.ts file?
27 replies
WWasp-lang
•Created by Kynetix on 10/16/2024 in #đŸ™‹questions
process is not defined
Nevermind. With some googling and querying perplexity.ai, I was able to get it working.
Thanks.
14 replies
WWasp-lang
•Created by Kynetix on 10/16/2024 in #đŸ™‹questions
process is not defined
Hi @martinsos yea I think I was importing the functions from operations.ts into the .tsx file.
The functions involve adding/updating/deleting records in Supabase. How do I go about calling them from the .tsx file? I find it a bit hard to understand how it works.
14 replies
WWasp-lang
•Created by Kynetix on 10/16/2024 in #đŸ™‹questions
process is not defined
Thanks, @kapa.ai . I'd like to store the API keys in .env.server because I don't want them visible in the client.
Is operations.ts server code?
14 replies