Skip to content

rosano/flowerpot-php-vercel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Flowerpot on Vercel

This repository provides a simple index.php wrapper around a flowerpot in a garden. Any path requested from the domain hosting the flowerpot will be shimmed to a request for the same path append to the FLOWERPOT_ROOT_URL and replace the page.

Steps to deploy on Vercel

To deploy this code in Vercel, take the following steps.

  1. Fork this repository.
  2. Modify the XXXX in the line define('FLOWERPOT_ROOT_URL', 'XXXX') in api/index.php to point to your garden.
  3. Commit the change.
  4. Import the forked repository in Vercel and configure your custom domain.

See https://github.com/chckyn/notes-flowerpot for an example of a configured flowerpot running on Vercel.

How does this work?

The vercel.json in your forked repository specifies that the vercel-php runtime will run api/index.php on a serverless function on a Vercel edge server. All page requests to your custom domain will route to /api/index.php.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages