Skip to content

Commit a457348

Browse files
updating environmente variables texts
1 parent 8d4a4b5 commit a457348

File tree

4 files changed

+24
-0
lines changed

4 files changed

+24
-0
lines changed

docs/Frameworks/nextjs.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ A segunda opção é habilitar o suporte experimental para SSR (Server-Side Rend
6161
DEPLOY_PATH=./
6262
```
6363
64+
Caso esteja utilizando a versão 14 do Next, adicione também os seguintes valores:
65+
66+
```
67+
BOHR_FUNCTION_RUNTIME=nodejs18.x
68+
```
69+
6470
3. É necessário também adicionar a seguinte configuração ao arquivo `next.config.js`:
6571
```
6672
module.exports = {

docs/variaveis-de-ambiente.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,9 @@ Atualmente o bohr.io utiliza por padrão algumas variáveis de ambiente, as quai
1515
- `INSTALL_CMD`
1616
- `DEPLOY_PATH`
1717
- `PUBLIC_PATH`
18+
19+
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:
20+
21+
```
22+
BOHR_FUNCTION_RUNTIME=nodejs18.x
23+
```

i18n/en/docusaurus-plugin-content-docs/current/Frameworks/nextjs.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ Read more about configuring static export in the [oficial Next.js documentation]
3333
PUBLIC_PATH=./out
3434
DEPLOY_PATH=./
3535
```
36+
37+
If you are using version 14 of Next, also add the following values:
38+
39+
```
40+
BOHR_FUNCTION_RUNTIME=nodejs18.x
41+
```
42+
3643
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:
3744
```
3845
images: {

i18n/en/docusaurus-plugin-content-docs/current/variaveis-de-ambiente.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,8 @@ Currently, bohr.io uses some default environment variables, which can be modifie
1616
- `DEPLOY_PATH`
1717
- `PUBLIC_PATH`
1818

19+
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:
20+
21+
```
22+
BOHR_FUNCTION_RUNTIME=nodejs18.x
23+
```

0 commit comments

Comments
 (0)