You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For optimal performance, we recommend hosting large videos on dedicated platforms:
226
+
- **YouTube** (Free, public/private options)
227
+
- **AWS S3** (Requires bucket & CORS configuration)
228
+
- **Cloudflare Stream** (Paid, enterprise-grade)
229
+
- **Vimeo** (Paid, professional features)
230
+
231
+
#### MigrationGuide
232
+
```mermaid
233
+
flowchart LR
234
+
A[Identify Videos] --> B{Current Location}
235
+
B -->|static/ folder| C[Move to Page Bundle]
236
+
B -->|External URL| D[Verify accessibility]
237
+
C --> E[Update references]
238
+
D --> E
239
+
E --> F[Test locally]
240
+
F --> G[Publish via Release]
241
+
```
242
+
243
+
#### CriticalConsiderations
244
+
- Accessibility: Always include subtitle tracks (VTT format)
245
+
246
+
- Thumbnails: Set custom posters with ```poster="image.jpg"```
247
+
248
+
- Bandwidth: Self-hosted videos may incur significant costs
249
+
250
+
- Authentication: For private videos, use signed URLs (S3) or unlisted (YouTube)
251
+
190
252
## 4. Build and PreviewLocally
191
253
192
254
Before publishing, it is crucial to preview your content locally to check for formatting errors, broken links, and overall structure.
@@ -334,4 +396,19 @@ make clean
334
396
335
397
The structure is defined by your folder hierarchy. A learning path is a directory, and each course is a sub-directory within that path. This folder structure in your `content` directory directly maps to the learning path structure presented to users.
336
398
399
+
6. **Why does my local build fail when adding large videos?**
400
+
401
+
Hugo's default memory limit is 512MB. For videos >50MB:
402
+
```bash
403
+
hugo server --memlimit 2GB
404
+
```
405
+
406
+
7. **How to securely host private training videos?**
0 commit comments