Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lazy load sentry only on errors #409

Merged
merged 7 commits into from
Nov 9, 2024
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 15 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ docker-compose run --rm hugo

## публикация подкаста

Перед использованием, необходимо иметь собранный docker образ `publisher`. Команда сборки при помощи docker-compose (конфиг в руте репозитария): `docker-compose build publisher`.
Перед использованием, необходимо иметь собранный docker образ `publisher`. Команда сборки при помощи docker-compose (конфиг в руте репозитория): `docker-compose build publisher`.

Скрипты публикации могут быть вызваны при помощи make в директории `./publisher`:

Expand All @@ -25,6 +25,14 @@ docker-compose run --rm hugo

## фронтенд

### зависимости

- [Node v22](https://nodejs.org/en/download/package-manager)
- [GoLang](https://go.dev/doc/install)
- [Hugo v0.81.0](https://gohugo.io/installation/macos/#build-from-source)

### девелопмент

```bash
# node 10
cd hugo
Expand All @@ -33,17 +41,19 @@ npm install

# разработка на localhost:3000
# с hugo LiveReload, без turbolinks
npm run start
npm run dev
# без hugo LiveReload, с turbolinks
npm run start-turbo
npm run dev:turbo

# сборка для прода
# сборка для prod
# результаты сборки:
# - hugo/static/build/
# - hugo/data/manifest.json
npm run production
```

### файловая структура

- лого в `src/images/`
- фавиконки в `static/` и описаны в `layouts/partials/favicons.html`
- favicons в `static/` и описаны в `layouts/partials/favicons.html`
- обложки в `static/images/covers/` (для сохранения совместимости также оставлены обложки `static/images/cover.jpg` и `static/images/cover_rt_big_archive.png`)
8 changes: 6 additions & 2 deletions hugo/.size-limit.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@ module.exports = [
},
{
path: 'static/build/manifest.js',
limit: '1 KB',
limit: '1.50 KB',
},
{
path: 'static/build/vendor.js',
limit: '135 KB',
limit: '105 KB',
},
{
path: 'static/build/vendor~sentry.js',
limit: '105 KB',
},
{
path: 'static/build/app.css',
Expand Down
Loading
Loading