Skip to content

Commit

Permalink
Merge pull request #70 from expatfile/@HofmannZ/fix/server-components
Browse files Browse the repository at this point in the history
Fix server components not reading env vars
  • Loading branch information
HofmannZ authored Aug 27, 2023
2 parents 381bdf9 + 4a1e9ef commit 02b254f
Show file tree
Hide file tree
Showing 17 changed files with 1,298 additions and 1,434 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,9 @@ export const getStaticProps: GetStaticProps = async (context) => {
};
```

#### `allEnv(): NodeJS.ProcessEnv`
#### `allEnv(): ProcessEnv`

Returns all environment variables as a `NodeJS.ProcessEnv` object regardless of
Returns all environment variables as a `ProcessEnv` object regardless of
the platform. This is useful if you want to destructure multiple env vars at
once.

Expand Down
12 changes: 6 additions & 6 deletions examples/with-app-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
"lint": "next lint"
},
"dependencies": {
"@types/node": "20.4.9",
"@types/react": "18.2.19",
"@types/node": "20.5.6",
"@types/react": "18.2.21",
"@types/react-dom": "18.2.7",
"eslint": "8.46.0",
"eslint-config-next": "13.4.13",
"next": "13.4.13",
"eslint": "8.48.0",
"eslint-config-next": "13.4.19",
"next": "13.4.19",
"next-runtime-env": "link:../..",
"react": "18.2.0",
"react-dom": "18.2.0",
"typescript": "5.1.6"
"typescript": "5.2.2"
}
}
Loading

0 comments on commit 02b254f

Please sign in to comment.