-
Notifications
You must be signed in to change notification settings - Fork 249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hosting UI, First draft #906
base: main
Are you sure you want to change the base?
Conversation
Co-Authored-By: Kiet <hoakiet98@gmail.com>
packages/hosting/src/api/zonke.ts
Outdated
export interface DeployOptions { | ||
environmentId: string; | ||
buildOutputDirectory: string; | ||
message?: string; | ||
} | ||
|
||
export async function deploy(options: DeployOptions) { | ||
const { environmentId, buildOutputDirectory, message } = options; | ||
|
||
return deployToPreviewEnvironment({ | ||
environmentId, | ||
buildOutputDirectory, | ||
message, | ||
// Default to 60 seconds for upload link expiration | ||
uploadLinkExpirationOverride: 60, | ||
}); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to add a packageJsonPath
property to support Remix builds. The default build output for Remix does not include the required modules, so we need to copy the package.json
path so dependencies can be installed during deployment. See this CLI implementation:
https://github.com/zonke-inc/sdk-ts/blob/main/packages/cli/src/commands.ts#L37-L43
Description
A modal with two states, an initial "create link" state and then a "Copy / Unpublish / Update" state
What is the purpose of this pull request?