Common Issues
This guide helps you resolve the most common deployment problems on Stormkit.Top-level /index.html Missing
Problem
You see a warning: “Top-level /index.html missing” in your deployment logs.What It Means
Stormkit cannot find anindex.html file at the root of your deployed files, and server-side rendering is not detected.
Important Note
/) will return 404. Other uploaded files will still be accessible.Diagnosis Steps
Check Deployment Manifest
- Find your deployment in the Deployments list
- Expand the menu (…)
- Click Manifest
- Review CDN Files section
Verify File Structure
index.html is listed in the CDN files. If not, it wasn’t included in the build output.Solutions
Solution 1: Fix Output Folder
Your build may be outputting to the wrong directory.Check Build Output
- Vite: Usually
dist/ - Create React App: Usually
build/ - Next.js: Usually
out/(static export) - Gatsby: Usually
public/
Update Configuration
Redeploy
Solution 2: Enable Server-Side Rendering
If you need a dynamic application, enable SSR:- Nuxt.js
- Next.js
- Custom Framework
.stormkit/server folder.How SSR Changes Routing
- SSR disabled: Requests must match exact file paths (e.g.,
/about.html) - SSR enabled: All non-CDN requests forward to serverless handler
Repository is Inaccessible
Problem
Error: “Repository is inaccessible” or “Stormkit has no access to the repo”Causes
- Repository URL changed
- Git provider credentials expired
- Repository was deleted or made private
- OAuth app was revoked
Solution: Update Repository URL
Navigate to Settings
Update Repository URL
Test Connection
Solution: Refresh GitHub Access
Open GitHub Integration
- Visit app.stormkit.io
- Click Create new app
Connect More Repositories
Grant Access
Test Deployment
Solution: Refresh GitLab Access
Revoke Old Tokens
- Visit gitlab.com
- Click Avatar > Preferences > Applications
- Revoke any Stormkit-related tokens
Re-authorize
- Visit app.stormkit.io
- Log in with GitLab
- Accept authorization prompt
Test Deployment
Solution: Check Repository Permissions
For organization repositories:- Verify Stormkit GitHub App has access to the organization
- Check if repository is private and Stormkit has permission
- Ensure you’re logged in with the correct Git provider account
Branch Does Not Exist
Problem
Error: “Stormkit has no access to the repo or the branch does not exist”Causes
- Branch was deleted from repository
- Branch name was misspelled in configuration
- Repository access issue (see above)
Solutions
Verify Branch Exists
Update Environment Config
- Go to Environment > Config
- Update Branch setting to an existing branch
- Save changes
Test Deployment
Cannot Find My App
Problem
Your application is missing from the dashboard.Cause
You logged in with a different provider than when you created the app. Each provider creates a separate account if emails differ.Example
- Created app while logged in with GitHub (github@example.com)
- Now logged in with GitLab (gitlab@example.com)
- Apps are in different accounts
Solutions
Option 1: Use Original Provider
Log Out
Log In with Correct Provider
Option 2: Migrate Apps
If you need to migrate apps between accounts:- Contact support via Discord
- Or email: hello@stormkit.io
- Current account email/provider
- Target account email/provider
- App IDs to migrate
Build Failures
Node.js Version Mismatch
Problem
Build fails with Node.js version errors:Solution
Specify Node.js version:Out of Memory
Problem
Build fails with:Solution
Increase Node.js memory:NODE_OPTIONS='--max-old-space-size=4096' npm run build
Missing Dependencies
Problem
Solutions
Ensure dependencies are in package.json
Ensure dependencies are in package.json
package.json and package-lock.jsonCheck if dependency is in devDependencies
Check if dependency is in devDependencies
dependencies:Clear npm cache
Clear npm cache
Build Command Not Found
Problem
Solution
Add build script topackage.json:
Deployment Timeout
Problem
Deployment times out or takes too long.Solutions
Optimize Build
- Remove unnecessary build steps
- Use build caching where possible
- Reduce asset size (images, fonts)
Check External Services
- Add timeouts to API calls
- Use build-time data caching
- Consider moving API calls to runtime
Review Dependencies
- Audit large dependencies
- Use lighter alternatives
- Remove unused packages
Environment Variables Not Working
Problem
Environment variables areundefined at runtime or build time.
Diagnosis
Check variable is set
Check variable is set
Check variable name
Check variable name
API_KEY≠api_key
Check framework requirements
Check framework requirements
- Next.js:
NEXT_PUBLIC_for browser - Vite:
VITE_for browser - Create React App:
REACT_APP_for browser
Rebuild required
Rebuild required
Solution Examples
- Next.js
- Vite
- Node.js/API
Assets Not Loading (404s)
Problem
CSS, JavaScript, or images return 404 errors.Causes & Solutions
Incorrect base path
Incorrect base path
Absolute paths in development
Absolute paths in development
Assets not copied
Assets not copied
Serverless Function Errors
Problem
API routes or SSR functions return errors.Common Issues
Missing handler export
Missing handler export
Missing dependencies
Missing dependencies
- Check
package.jsonincludes all deps - Verify
node_modulesin.stormkit/apior.stormkit/server
Timeout
Timeout
- Add database query optimization
- Implement caching
- Use async operations efficiently
Cold start
Cold start
- Keep dependencies lean
- Lazy load heavy modules
- Use connection pooling for databases
Getting Help
If you’re still experiencing issues:Check Logs
- Go to your deployment
- Click View Logs
- Look for error messages and stack traces
Community Support
Join the Stormkit Discord:- Discord Server
- Ask in
#supportchannel - Share deployment logs and error messages
Contact Support
For urgent issues:- Email: hello@stormkit.io
- Include:
- App ID
- Deployment ID
- Error messages
- Steps to reproduce