.pages.dev`
- SSL certificates may take 1-2 minutes to provision for new projects
> [!CRITICAL]
> **URL PATTERN**: The deployed URL does **NOT** include `/inputs/`.
> - SOURCE: `inputs/[FOLDER-NAME]/index.html`
> - DEPLOYED: `https://lesson-slideshows.pages.dev/[FOLDER-NAME]/`
>
> **WRONG**: `https://lesson-slideshows.pages.dev/inputs/21-JAN-INTENSIVE-READING/` ❌
> **CORRECT**: `https://lesson-slideshows.pages.dev/21-JAN-INTENSIVE-READING/` ✅
### 4. Create Google Doc Link (MANDATORY)
> [!CRITICAL]
> You MUST create a **Google Doc** (not an HTML file) containing the slideshow link.
> HTML files do NOT work in Google Drive for sharing - they must be converted to Google Docs format.
1. Create a simple HTML file with the link:
```html
Slideshow Link
https://lesson-slideshows.pages.dev/QAD-Fight-or-Flight/
```
2. Push to Google Docs (this CONVERTS to GDoc format):
```powershell
$env:PYTHONIOENCODING='utf-8'
python scripts/push_to_gdocs.py --file "path/to/link.html" --name "DD-MM-YY Slideshow Link"
```
3. Provide the Google Doc URL to the user.
> [!CRITICAL]
> **CANONICAL STORAGE**: All shareable GDoc links MUST be stored in the [Slideshow Drive Folder](https://drive.google.com/drive/folders/1XmuKyouUesIam7fyE16gjZXX1c_YOJaj).
## One-Liner (Quick Deploy)
```powershell
node scripts/build_dist.js QAD-Fight-or-Flight; $env:CLOUDFLARE_API_TOKEN = [Environment]::GetEnvironmentVariable('CLOUDFLARE_SLIDESHOW_API', 'User'); npx wrangler pages deploy dist/
```
## Projects
| Project | URL | Purpose |
|:---|:---|:---|
| `lesson-slideshows` | lesson-slideshows.pages.dev | Standalone presentations (direct deploy) |
| `lesson-plan-agent` | lesson-plan-agent.pages.dev | Dashboard + Git-connected presentations |
## Troubleshooting
### Token Permission Errors
If you see "missing permission", the token needs:
1. **Account > Cloudflare Pages > Edit** permission
2. **Account Resources** set to your specific account (not "All accounts")
3. After editing permissions, **Roll** the token to get a new value
### SSL Errors on New Deployments
Wait 1-2 minutes for certificate provisioning. Use the production URL (without deployment hash).