Skip to content

Clarification on configuring PHP project without output directory #621

@cjnewbs

Description

@cjnewbs

Hi,
I’m experimenting with the Vercel PHP runtime. I noticed that when deploying a project with only a PHP entrypoint (e.g., api/index.php) and no static files the vercel command gives the error Error: No Output Directory named "public" found after the Build completed

Since serverless PHP functions don’t need a static output directory, I wanted to clarify:

What is the recommended way to configure a purely PHP project with no static output directory?

I did follow the instructions at https://php.vercel.app/ but this also gives the same error.

Any guidance or example minimal setup would be very helpful.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions