anand248
anand248
Explore posts from servers
HHono
Created by anand248 on 10/15/2024 in #help
Vite 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 Github
3 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
HHono
Created by anand248 on 10/12/2024 in #help
Need to generate new css with hash to burst cache
My _renderer.tsx look as below, I wan to generate new .css each time since my css changes are not being reflected on browser - How to do that ( I am using vite)?
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>{title}</title>
<link rel="icon" href="/favicon.ico" />
{import.meta.env.PROD ? (
<link href="/static/style.css" rel="stylesheet" />
) : (
<link href="/app/style.css" rel="stylesheet" />
)}
<Script
src="/app/client.ts"
async
nonce={c.get("secureHeadersNonce")}
/>
<Style />
</head>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>{title}</title>
<link rel="icon" href="/favicon.ico" />
{import.meta.env.PROD ? (
<link href="/static/style.css" rel="stylesheet" />
) : (
<link href="/app/style.css" rel="stylesheet" />
)}
<Script
src="/app/client.ts"
async
nonce={c.get("secureHeadersNonce")}
/>
<Style />
</head>
1 replies
HHono
Created by anand248 on 10/9/2024 in #help
honox - not returning anything from POST, gives 404.
Is this expected, if not will log an issue on honox repo.
3 replies
HHono
Created by anand248 on 10/7/2024 in #help
Using honox, bun, vite and using islands folder, Hot Reload doesn't work
for client side components changes, they do not get reloaded on browser, Am I missing some setting to enable that?
2 replies
HHono
Created by anand248 on 10/6/2024 in #help
Nested form objects POST
My form has nested objects and array of objects. I name them as below -
<form method="post">

<div class="form-control mb-4">
<label for="invoiceNumber" class="label">
<span class="label-text">Invoice Number1</span>
</label>
<input id="invoiceHeader.invoiceNumber" name="invoiceHeader.invoiceNumber" ... />
</div>
<form method="post">

<div class="form-control mb-4">
<label for="invoiceNumber" class="label">
<span class="label-text">Invoice Number1</span>
</label>
<input id="invoiceHeader.invoiceNumber" name="invoiceHeader.invoiceNumber" ... />
</div>
How can I read them back as json at server side? It all works fine if body has flat structure. Am I missing any middleware
4 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-lang
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-lang
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