Eddy
Eddy
Explore posts from servers
TtRPC
Created by Eddy on 6/24/2024 in #❓-help
Help with tRPC + Hono + Next.js
Is there any working example of a simple app.
2 replies
CDCloudflare Developers
Created by Eddy on 6/17/2024 in #general-help
r2 metadata not working
R2 metadata causes cors error. client
const response = await fetch(signedUrl, {
method: "PUT",
headers: {
"x-amz-meta-name": "name",
"Content-Length": String(fileSize),
"Content-Type": fileType,
},
body: file,
});
const response = await fetch(signedUrl, {
method: "PUT",
headers: {
"x-amz-meta-name": "name",
"Content-Length": String(fileSize),
"Content-Type": fileType,
},
body: file,
});
server
const cmd = new PutObjectCommand({
Bucket,
Key,
ContentLength: fileSize,
ContentType: fileType,
});

const signedUrl = await getSignedUrl(r2Client, cmd);
const cmd = new PutObjectCommand({
Bucket,
Key,
ContentLength: fileSize,
ContentType: fileType,
});

const signedUrl = await getSignedUrl(r2Client, cmd);
CORS policy
[
{
"AllowedOrigins": [
"*"
],
"AllowedMethods": [
"GET",
"PUT",
"POST",
"DELETE"
],
"AllowedHeaders": [
"*"
],
"ExposeHeaders": [],
"MaxAgeSeconds": 3000
}
]
[
{
"AllowedOrigins": [
"*"
],
"AllowedMethods": [
"GET",
"PUT",
"POST",
"DELETE"
],
"AllowedHeaders": [
"*"
],
"ExposeHeaders": [],
"MaxAgeSeconds": 3000
}
]
2 replies
TTCTheo's Typesafe Cult
Created by Eddy on 11/2/2023 in #questions
tRPC alternatives for a simple public API
No description
11 replies
TTCTheo's Typesafe Cult
Created by Eddy on 6/13/2023 in #questions
Next 13 + i18n + tRPC not working
When using next-intl app/api folder stops working. Used this guide https://next-intl-docs.vercel.app/docs/next-13 Any solutions for this implementation
1 replies