Problem when deploying static assets with `cf deploy`
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 30/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
Línea de trabajo
The payload names no files or entry points, so start by reproducing: create a folder with only an index.html and run cf deploy to see where the setup stage fails for lack of package.json. Locate the setup code that assumes a package.json and the build step it hands off to. Done means a static project without package.json deploys, or the skip-build path the issue proposes works, with a test covering it.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Thank you Cloudflare for making such a great cli. when I try to deploy a static site using cf recently, I found that when a project does not have a package.json, you cannot use cf to manage this project. I noticed that using cf on a project must have a package.json. Otherwise, cf cannot complete the setup stage.
This create a problem. Replacing wrangler with cf would become troublesome. You must create a package.json, install cf, wrangler or vite. Even if the project itself does not require package.json (like a pure static site). As for now, cf cannot replace wrangler completely.
Possible solutions:
- Use wrangler as a direct dependency of cf cli
- Provide a ways that can skip wrangler build stage
- Lenguaje dominante
- TypeScript
- Estrellas
- 960
- Forks
- 62
- Merge medio
- 23 h 17 min
- PR fusionados (30 d)
- 220
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de cloudflare/cf
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
cloudflare/cf#344 ·
Los mantenedores suelen responder en 1 día
-
upstream
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
cloudflare/cf#262 ·
Los mantenedores suelen responder en 1 día
-
`cf dev` rejects `--port` and `--host` for Vite projects, including the `cf init` templatePosiblemente ocupada @jamesopstad la tomó hace 15 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
cloudflare/cf#223 · 2 asignados ·
Los mantenedores suelen responder en 1 día
-
upstream
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
cloudflare/cf#179 ·
Los mantenedores suelen responder en 1 día
-
OAuth account-token delegation: five groups non-selectable despite explicit first-party CLI consentAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
cloudflare/cf#433 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de cloudflare/cf
Issues similares
-
Broken links in the docsAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
liberation-data/drivine#428 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
GitLab: a merge request closed without merging keeps the Git toolbar on View MR instead of Create MRAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
code-yeongyu/oh-my-openagent#11731 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100