Can't access server environment variable using createServerFn #4659
Unanswered
floyergilmour
asked this question in
Q&A
Replies: 2 comments
-
can you please provide a complete minimal example project based on one of our examples? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Server Environment Variables are injected to runtimeEnv: {
VITE_APP_TITLE: import.meta.env.VITE_APP_TITLE,
SERVER_URL: process.env.SERVER_URL,
DATABASE_URL: process.env.DATABASE_URL,
}, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm gettin an error when I try o access my DB url in createServerFn
env
comes from the t3 libraryI get this error
Beta Was this translation helpful? Give feedback.
All reactions