t
tRPC
J
tRPC
•
10mo ago
•
2 replies
juan
Server actions leaking .env
Ive got some router for generated presigned s3 urls
.
router
:
https://pastebin.com/zSQ4MRjK
(its not meant to be a public procedure
)
I created an actions file like this
:
"use server
"
;
import
{ api
} from
"
~
/trpc
/server
"
;
export async function getUploadUrls
(
.
.
.params
: Parameters
<typeof api
.files
.getUploadUrls
>
)
{
return await api
.files
.getUploadUrls
(
.
.
.params
)
;
}
But when I import the actions on a client component I get an error
.
I create this app using create
-t3
-app
, I dont think I
've changes anything about the default procedure
.
Pastebin
import { z } from "zod";import { S3Client } from "@aws-sdk/client-s...
Pastebin
.com is the number one paste tool since 2002
. Pastebin is a website where you can store text online for a set period of time
.
tRPC
Join
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
Trpc server actions
S
shikishikichangchang / ❓-help
16mo ago
trpc + server actions
A
advt / ❓-help
2y ago
Calling procedures from Next server actions
S
seven / ❓-help
2y ago
T3 Stack TRPC used in Server Actions
J
Jonathan / ❓-help
3y ago