Skip to content
Snippets Groups Projects
Select Git revision
  • main
  • responsive-ui
  • v0.4.0
  • v0.3.22
  • v0.3.6
  • v0.3.4
  • v0.3.5
  • v0.3.3
  • v0.3.2
  • v0.3.1
  • v0.3.0
  • v0.2.9
  • v0.2.8
  • v0.2.7
  • v0.2.6
  • 0.1
16 results

netlify.toml

Blame
  • netlify.toml 892 B
    [build]
      command = "bun run build"
      publish = "dist"
    
    [dev]
      command = "bun run dev"
      port = 3001
      targetPort = 3000
      publish = "dist"
      framework = "vite"
      autoLaunch = true
    
    # Handle React Router
    [[redirects]]
      from = "/*"
      to = "/index.html"
      status = 200
    
    # Security headers
    [[headers]]
      for = "/*"
      [headers.values]
        X-Frame-Options = "DENY"
        X-XSS-Protection = "1; mode=block"
        X-Content-Type-Options = "nosniff"
        Referrer-Policy = "strict-origin-when-cross-origin"
        Content-Security-Policy = "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' blob:; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob: https:; connect-src 'self' https:; worker-src 'self' blob:; child-src 'self' blob:;"
    
    # Cache control for static assets
    [[headers]]
      for = "/assets/*"
      [headers.values]
        Cache-Control = "public, max-age=31536000, immutable"