© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•8mo ago•
2 replies
lavirox

build failing for html/css build/deploy using github for workers

i have a simple html/css site im trying to deploy, but the build keeps failing and i only see the default "hello world". i have linked to my github repo, and it seemed that when building it was having trouble finding the index.html so i edited the deploy command to
npx wrangler deploy ./index.html
npx wrangler deploy ./index.html
. but i still have the error and the build is failing:
Success: Finished initializing build environment
14:26:21.460    Cloning repository...
14:26:23.103    Detected the following tools from environment: 
14:26:23.106    Executing user deploy command: npx wrangler deploy ./index.html
14:26:25.531    npm warn exec The following package was not found and will be installed: wrangler@4.20.0
14:26:37.514    
14:26:37.514     ⛅️ wrangler 4.20.0
14:26:37.514    ───────────────────
14:26:37.538    
14:26:37.619    ✘ [ERROR] Build failed with 1 error:
14:26:37.619    
14:26:37.620      ✘ [ERROR] No loader is configured for ".html" files: index.html
14:26:37.620      
14:26:37.620      
14:26:37.620    
14:26:37.620    
14:26:37.620    
14:26:37.638    :wood:  Logs were written to "/opt/buildhome/.config/.wrangler/logs/wrangler-2025-06-14_21-26-36_691.log"
14:26:37.827    Failed: error occurred while running deploy command
Success: Finished initializing build environment
14:26:21.460    Cloning repository...
14:26:23.103    Detected the following tools from environment: 
14:26:23.106    Executing user deploy command: npx wrangler deploy ./index.html
14:26:25.531    npm warn exec The following package was not found and will be installed: wrangler@4.20.0
14:26:37.514    
14:26:37.514     ⛅️ wrangler 4.20.0
14:26:37.514    ───────────────────
14:26:37.538    
14:26:37.619    ✘ [ERROR] Build failed with 1 error:
14:26:37.619    
14:26:37.620      ✘ [ERROR] No loader is configured for ".html" files: index.html
14:26:37.620      
14:26:37.620      
14:26:37.620    
14:26:37.620    
14:26:37.620    
14:26:37.638    :wood:  Logs were written to "/opt/buildhome/.config/.wrangler/logs/wrangler-2025-06-14_21-26-36_691.log"
14:26:37.827    Failed: error occurred while running deploy command
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

build failing for html/css build/deploy using github for workers
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
7mo ago
Deploy to workers failing
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3y ago
hygene for workers build and env for github integration?
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
2mo ago
Workers GitHub deploy clears runtime variables
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
6mo ago