Fail to deploy Angular project on Cloudflare Pages

Discussão em 'Angular' iniciado por master_beta, Novembro 2, 2024.

  1. master_beta

    master_beta Guest

    I tried to deploy my Angular project from my Github repository with Cloudflare free plan.

    But failed. How can I success deploy?

    About project:

    • The project doesn't include SSR or SSG.
    • I added .nvmrc to project.

    Build settings on cloudflare is default:

    Build command:
    npm run build
    Build output directory:
    /dist/cloudflare
    Build system version:
    2 (latest)
    Root directory:
    /
    Environment variables:
    None

    This is last part of build log:

    11:57:04.079 Finished
    11:57:04.079 Note: No functions dir at /functions found. Skipping.
    11:57:04.080 Validating asset output directory
    11:57:04.080 Error: Output directory "dist/cloudflare" not found.
    11:57:05.266 Failed: build output directory not found

    My project doesn't have "dist" directory.

    Continue reading...

Compartilhe esta Página