Static Website
This guide walks you through deploying and managing static websites on PandaStack Platform.
Features
Basic Features
Static file hosting
Custom domains
SSL/TLS certificates
Auto deployment from Git
Build automation
Environment variables
Advanced Features
Custom HTTP Headers
Cache control
Security headers
Custom response headers
Path-specific headers
URL Management
URL redirects
URL rewrites
Wildcard patterns
Rule prioritization
Deployment Steps
1. Connect Repository
Choose Git Provider:
GitHub
GitLab
Bitbucket
Select Repository:
Choose repository
Select branch
Configure access
2. Configure Build
Basic Settings:
Project name
Repository branch
Auto-deploy settings
Build Configuration:
Environment Variables:
Add key-value pairs
Import from .env file
Secure sensitive data
3. Deploy Website
Initial Deployment:
Automatic build
Asset optimization
SSL provisioning
Verify Deployment:
Check build logs
Test website
Monitor status
URL Management
Redirect Rules
Rewrite Rules
Rule Management
Order rules by priority
Move rules up/down
Enable/disable rules
Test rule patterns
HTTP Headers
Custom Headers
Common Use Cases
Cache Control:
Security Headers:
CORS Headers:
Environment Management
Environment Variables
Direct Input:
File Import:
Secret Management
Secure storage
Environment separation
Access control
Version tracking
Best Practices
1. Build Configuration
Use proper base directory
Optimize build command
Configure output path
Handle dependencies
2. URL Management
Order rules properly
Use specific patterns
Test redirects
Monitor traffic
3. Headers
Set security headers
Configure caching
Use appropriate values
Test header effects
4. Performance
Optimize assets
Configure caching
Use CDN
Monitor metrics
Troubleshooting
1. Build Issues
Check build command
Verify dependencies
Review build logs
Check resource limits
2. URL Issues
Test redirect rules
Verify patterns
Check rule order
Monitor traffic
3. Header Issues
Verify header syntax
Test header effects
Check conflicts
Monitor responses
4. Performance Issues
Review caching
Check asset sizes
Monitor load times
Analyze metrics
Security
1. SSL/TLS
Automatic certificates
Custom certificates
Force HTTPS
Security headers
2. Access Control
Repository access
Environment variables
Secret management
Role permissions
3. Headers
Security headers
CORS configuration
Content security
Frame options
Monitoring
1. Build Status
Build logs
Deployment status
Error tracking
Performance metrics
2. Website Status
Uptime monitoring
Response times
Error rates
Traffic analysis
3. Security Status
SSL monitoring
Security headers
Access logs
Threat detection
Last updated