anand248
Explore posts from serversVite plugin does not compile the commonjs module
Hey Team, I am developing an application using Yusuke's template
https://github.com/yusukebe/cloudflare-d1-drizzle-honox-starter
If you add any library which also comes with commonjs/nodejs module, it fails to load them . Everything works fine with
npx wrangler pages dev
though. Any idea, agains which repo, should I post this issue on Github3 replies
CDCloudflare Developers
•Created by anand248 on 10/13/2024 in #workers-help
Which library do you use to generate pdf at worker side?
I tried jspdf, pdfmake, but they are giving module related errors.
2 replies
CDCloudflare Developers
•Created by anand248 on 10/12/2024 in #workers-help
I am trying to add a new binding for R2 after deploying my application on cloudflare in wrangler.tom
, but my pages functions are not picking these newly added bindings and not showing up on settings tab. It doesn't allow me to edit it saying, this project's binding is managed by wrangler.toml, I did add R2 binding on my wrangler.toml. I think, due to this my c.env.MY_BUCKET is coming as undefined at run time.
2 replies
CDCloudflare Developers
•Created by anand248 on 9/29/2024 in #pages-help
Developing a new application using template - https://github.com/yusukebe/cloudflare-d1-drizzle-hono
I am adding auth flows using Lucia to above template which uses D1, Drizzle & Honox. I am using pages.
My major problems are around common js modules. I want to use "Resend" library to send emails. IT runs fine once deployed but locally when I run the application using "vite" it gives commonjs related errors, I am trying to fix them with Vite.config.ts and
@originjs/vite-plugin-commonjs
but no success till now.
Another option is to run the app using npx wrangler pages dev
but it gives error around D1 access. Did you experience same problems ?3 replies
CDCloudflare Developers
•Created by anand248 on 9/26/2024 in #pages-help
daisy ui styles not applying on cloudflare built deployment
I built cloudflare pages app (using this template https://github.com/yusukebe/cloudflare-d1-drizzle-honox-starter/blob/main/README.md ) , and added daisy UI. My tailwind css styles are being applied, but not daisy UI. any clue?
2 replies
CDCloudflare Developers
•Created by anand248 on 9/4/2024 in #workers-help
Since worker size limit is 1 MB, i reckon a typical web application must have multiple workers
Do you know any open source template which demonstrate how multiple workers sit along with single frontend react app. If it has sample auth setup , that'd be great.
5 replies
WWasp
•Created by anand248 on 8/18/2024 in #🙋questions
How to create seed data on fly.io postgres instance
I created a new fly io launch and want to create same set of seed data which I do locally using
wasp db seed
on fly.io's postgres instance. How can I achieve it ?5 replies
WWasp
•Created by anand248 on 8/11/2024 in #🙋questions
When we query any entity with child entities included, how to get types defined for those in client
Wasp version - latest 0.14
e.g.
query getStandard {
fn: import { getStandard } from "@src/standards/queries",
entities: [Order]
}
My query is actuall able to return child entitiy [orderRows] inside Order, how can I specify that in .wasp file ?
7 replies