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

[BUILD] Add build module to extract assets (images, videos, pdf) in final bundle #241

Merged
merged 2 commits into from
Feb 17, 2021

Conversation

bpetetot
Copy link
Contributor

@bpetetot bpetetot commented Feb 17, 2021

🦄 Problème

Les assets (images, vidéos, etc) sont actuellement servies depuis prismic.
Mensuellement on dépasse le quota de bande passante inclus dans notre forfait.
Autre conséquence, nous ne profitons pas du CDN de Baleen.

🤖 Solution

Création d'un module de build nuxt permettant d'extraire les assets (dont l'extension est configurable) servies depuis différentes url (configurables via hostnames) dans le bundle final.

🌈 Remarques

Ce module est un bon candidat pour être open source dans son propre repo et ainsi partagé à la communauté Nuxt.
On a également extrait la vidéo (67 Mo !) depuis ovh.
Il faudrait envisager de la compresser pour soulager la bande passante de nos utilisateurs.

💯 Pour tester

Se connecter à la review app.
Vérifier que les images servies le sont depuis l'adresse de la review app et qu'aucun appel à prismic n'est fait.

@pix-service
Copy link

I'm deploying this PR to these urls:

Please check it out!

@bpetetot bpetetot force-pushed the feature-replace-remote-assets branch from f47eafa to 0335118 Compare February 17, 2021 14:32
@HEYGUL HEYGUL force-pushed the feature-replace-remote-assets branch from 0335118 to 63ca190 Compare February 17, 2021 14:42
@HEYGUL HEYGUL force-pushed the feature-replace-remote-assets branch 2 times, most recently from 4ec5b09 to b2f2ed6 Compare February 17, 2021 15:01
@HEYGUL HEYGUL marked this pull request as ready for review February 17, 2021 15:01
@bpetetot bpetetot force-pushed the feature-replace-remote-assets branch from b2f2ed6 to 9d142de Compare February 17, 2021 16:15
@bpetetot bpetetot changed the title Feature replace remote assets [BUILD] Add build module to extract assets (images, videos, pdf) in final bundle Feb 17, 2021
@bpetetot bpetetot merged commit 056a613 into dev Feb 17, 2021
@bpetetot bpetetot deleted the feature-replace-remote-assets branch February 17, 2021 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants