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
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