veeque
veeque
Explore posts from servers
HHono
Created by veeque on 9/11/2024 in #help
How do I get rest params?
Found the solution: "/your/path/here/:rest{.+$}"
2 replies
CDCloudflare Developers
Created by veeque on 9/11/2024 in #pages-help
How to host multiple pages under the same domain
Using Hono:
app.get("/books/:path{.+$}?", async (context) => {
const path = context.req.param("path") || "";

const response = await fetch(`https://app1.pages.dev/${path}`);

return response;
});
app.get("/books/:path{.+$}?", async (context) => {
const path = context.req.param("path") || "";

const response = await fetch(`https://app1.pages.dev/${path}`);

return response;
});
The issue is that now I see failing requests to example.com/_app/immutable/..., because those should either be to app1.pages.dev/_app/immutable/... or to example.com/app1/_app/immutable/...... It would be nice not having to go into app1's code (a SvelteKit app) and setting paths https://kit.svelte.dev/docs/configuration#paths
3 replies
CDCloudflare Developers
Created by veeque on 9/11/2024 in #pages-help
How to host multiple pages under the same domain
No description
3 replies
DTDrizzle Team
Created by veeque on 8/30/2024 in #help
How to run a join on the result of a union
yess, that's what i was looking for. thanks!
3 replies