Joaquim
Joaquim
WWasp-lang
Created by Joaquim on 11/15/2024 in #đŸ™‹questions
Access folder in project root from dockerfile
Hey! I have a folder for certificates /cert where I store certificates. I want to include them in the dockerfile. The issue I have is that after wasp built, this \cert folder is nowhere to be seen inside /.wasp/buildwhich makes it impossible to use inside the docker build process. Is there a way for this to work or do I have to put /cert inside the /srcfolder?
8 replies
WWasp-lang
Created by Joaquim on 11/15/2024 in #đŸ™‹questions
pg-boss can't find certificates
Hey! I'm trying to connect my app to an RDS db: DATABASE_URL="postgres://user:[email protected]/databaseb?ssl=true&sslmode=verify-full&sslrootcert=~/certs/global-bundle.pem" Notice the sslrootcert=~/certs/global-bundle.pem" which points at a folder with AWS SSL certificates. Running wasp db migrate-dev works great. I can successfully connect to the AWS db. Running wasp start does not work due to:
Starting pg-boss...
[ Server!] Error: ENOENT: no such file or directory, open '~/certs/global-bundle.pem'
Starting pg-boss...
[ Server!] Error: ENOENT: no such file or directory, open '~/certs/global-bundle.pem'
Initially I tried to set /certs in my project directory and that failed for the same reason. I though pg-boss was initializing from a weird path so I tried to move it to ~/certs to be able to set an absolute path. Also didn't work. My question is, why can't pg-boss find the path ~/certs? Is it running in a VM or something?
7 replies
WWasp-lang
Created by Joaquim on 11/15/2024 in #đŸ™‹questions
Adding svgr plugin to the vite config
Hey! I want to import svgs as React svg components instead of urls. So I installed the svgr vite plugin https://www.npmjs.com/package/vite-plugin-svgr. Locally, it works perfectly but I can't deploy because the web-server folder doesn't build. The issue is
Cannot find module '../icons/icon.svg?react' or its corresponding type declarations.

21 import Icon from "../icons/dexindex.svg?react";
Cannot find module '../icons/icon.svg?react' or its corresponding type declarations.

21 import Icon from "../icons/dexindex.svg?react";
It seems like the web-server vite config correctly merges with the one from the root folder but it's not installed, or at least it doesn't show up in web-server's package.json. Any ideas? I guess this issue would apply to any other vite plugin.
7 replies