# Description
The `sbx.commands.run` method can generate a `stdout` with badly encoded
`UTF-8` bytes, which can cause this kind of errors:
```py
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe2 in position 8191: unexpected end of data
```
see more here:
https://linear.app/e2b/issue/E2B-1291/unicodedecodeerror-in-python-sdk-when-using-curl-command
To address this we update the `decode` error handler to replace with the
unicode replacement char.
# Test
```sh
poetry run pytest -s -n 4 -k "tests/sync/sandbox_sync/commands/test_run"
```
this pr fixes the following in a local development environment:
- supabase auth redirect after oauth sign in
- forgot password flow
this is accomplished by adding a new environment variable
`NEXT_PUBLIC_BASE_URL` which prevents checking something like
`process.env.NODE_ENV` and conditionally hardcoding the urls in the code
itself. this way, for potential changes to these values, we can utilise
this mechanic in other places where it may be required in the near
future without traversing the codebase manually.
i already set `NEXT_PUBLIC_BASE_URL` in the vercel production
environment to: `https://e2b.dev`
Adds publish/unpublish commands to the CLI to allow changing the
visibility of templates. Publishing a template makes it visible to other
teams using E2B, while setting it private (default) only makes it
visible within your own team.
example usage:
```
e2b template publish <template>
```
```
e2b template unpublish <template>
```
- Click on team dropdown > Developer
- Setting alternative API URL
- Setting alternative Billing URL
- Resetting the above to defaults (provided by env variable)
This PR changes the target hostname for the root route (`/`) for
https://e2b.dev to reflect our new landing page hosting.
This is the first step towards removing the reverse proxy handling from
our public web app.