API Reference/Deprecated
Deploy a Website (v1)
Deploy a website. Files is a map of file paths to file contents. Configuration is optional and contains additional information about the deployment.
POST
/web/v1/deploy
Request Body
application/json
Requiredfiles
RequiredobjectThe files to deploy, a map of file paths to file contents, e.g. { "index.js": {"content": "your main", "encoding": "utf-8"}, "file2.js": {"content": "your helper" } }
Do not include node modules in this bundle, they will not work. Instead, includes a package-lock.json, bun.lockb, pnpm-lock.yaml, or yarn.lock, the node modules for the project will be installed from that lock file, or use the node_modules field in the configuration to specify the node modules to install.
config
objectsuccessfully deployed