Skip to content

Environment variables with adapter-node not completely working. #11502

Closed Answered by LGmatrix13
LGmatrix13 asked this question in Q&A
Discussion options

You must be logged in to vote

Looks like you need to import envs one by one like so:

import { PUBLIC_SOME_ENV } from "$env/static/public"

Instead of:

import { env } from '$env/dynamic/public';

env.PUBLIC_SOME_ENV

@Rich-Harris this doesn't seem to be in the adapter-node docs under environment variables? If this is the expected result, should I create a PR to add the additional detail to the docs?

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by LGmatrix13
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants