For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

  1. Custom HTTP Headers

    • Cache control

    • Security headers

    • Custom response headers

    • Path-specific headers

  2. URL Management

    • URL redirects

    • URL rewrites

    • Wildcard patterns

    • Rule prioritization

Deployment Steps

1. Connect Repository

  1. Choose Git Provider:

    • GitHub

    • GitLab

    • Bitbucket

  2. Select Repository:

    • Choose repository

    • Select branch

    • Configure access

2. Configure Build

  1. Basic Settings:

    • Project name

    • Repository branch

    • Auto-deploy settings

  2. Build Configuration:

  3. Environment Variables:

    • Add key-value pairs

    • Import from .env file

    • Secure sensitive data

3. Deploy Website

  1. Initial Deployment:

    • Automatic build

    • Asset optimization

    • SSL provisioning

  2. 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

  1. Cache Control:

  2. Security Headers:

  3. CORS Headers:

Environment Management

Environment Variables

  1. Direct Input:

  2. 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