Skip to content
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

Open
wants to merge 19 commits into
base: main
Choose a base branch
from
Open

Hosting UI, First draft #906

wants to merge 19 commits into from

Conversation

drfarrell
Copy link
Collaborator

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?

  • New feature
  • Documentation update
  • Bug fix
  • Refactor
  • Release
  • Other

@drfarrell drfarrell requested a review from Kitenite December 15, 2024 22:26
Comment on lines 24 to 40
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,
});
}

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants