Skip to content

Commit

Permalink
updating environmente variables texts
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-nachtigall authored Jan 26, 2024
1 parent 8d4a4b5 commit a457348
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/Frameworks/nextjs.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ A segunda opção é habilitar o suporte experimental para SSR (Server-Side Rend
DEPLOY_PATH=./
```
Caso esteja utilizando a versão 14 do Next, adicione também os seguintes valores:
```
BOHR_FUNCTION_RUNTIME=nodejs18.x
```
3. É necessário também adicionar a seguinte configuração ao arquivo `next.config.js`:
```
module.exports = {
Expand Down
6 changes: 6 additions & 0 deletions docs/variaveis-de-ambiente.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,9 @@ Atualmente o bohr.io utiliza por padrão algumas variáveis de ambiente, as quai
- `INSTALL_CMD`
- `DEPLOY_PATH`
- `PUBLIC_PATH`

A versão do nodeJS é exemplo de variável de ambiente que pode ser adicionada, já que alguns frameworks exigem versões mais atualizadas como o Next 14 por exemplo:

```
BOHR_FUNCTION_RUNTIME=nodejs18.x
```
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ Read more about configuring static export in the [oficial Next.js documentation]
PUBLIC_PATH=./out
DEPLOY_PATH=./
```
If you are using version 14 of Next, also add the following values:
```
BOHR_FUNCTION_RUNTIME=nodejs18.x
```
3. If you are not using the `next-blog-starter` template, it is necessary to turn off the Image Optimization in the `next.config.js` file:
```
images: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,8 @@ Currently, bohr.io uses some default environment variables, which can be modifie
- `DEPLOY_PATH`
- `PUBLIC_PATH`

The nodeJS version is an example of an environment variable that can be added, as some frameworks require more up-to-date versions, such as Next 14, for example:

```
BOHR_FUNCTION_RUNTIME=nodejs18.x
```

0 comments on commit a457348

Please sign in to comment.