[ci] yarn format

This commit is contained in:
natemoo-re 2021-11-23 18:22:15 +00:00 committed by GitHub Actions
parent e4002f2958
commit b8b04dc2d3

View file

@ -24,7 +24,7 @@ PUBLIC_POKEAPI="https://pokeapi.co/api/v2"
Instead of using `process.env`, with Vite you use `import.meta.env`, which uses the `import.meta` feature added in ES2020 (don't worry about browser support though, Vite replaces all `import.meta.env` mentions with static values). For example, to get the `PUBLIC_POKEAPI` environment variable, you could use `import.meta.env.PUBLIC_POKEAPI`.
```js
fetch(`${import.meta.env.PUBLIC_POKEAPI}/pokemon/squirtle`)
fetch(`${import.meta.env.PUBLIC_POKEAPI}/pokemon/squirtle`);
```
> ⚠WARNING⚠: