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

Add support for the hosting provider Render.com #3

Merged
merged 1 commit into from
Apr 4, 2022

Conversation

danielmichaels
Copy link

This PR adds support for Render.com.

When deployed to a Render environment, this package will now identify the current version by looking for RENDER and RENDER_GIT_COMMIT environment variables. All Render environments expose the RENDER variable as true and the RENDER_GIT_COMMIT will be the latest git commit hash for the given deploy.

Let me know if I can do anything else to help out. I've never developed/contributed to a TS library before so I may have missed something important.

Cheers

This commit adds two new environment variable look-ups; RENDER and RENDER_GIT_COMMIT.
@@ -21,6 +21,8 @@ export default defineConfig({
define: {
"process.env.VERCEL": "process.env.VERCEL",
"process.env.VERCEL_GIT_COMMIT_SHA": "process.env.VERCEL_GIT_COMMIT_SHA",
"process.env.RENDER": "process.env.RENDER",
"process.env.RENDER_GIT_COMMIT": "process.env.RENDER_GIT_COMMIT",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah nice, thanks for adding this here!

@ryanto
Copy link
Owner

ryanto commented Apr 4, 2022

Awesome, looks great!

@ryanto ryanto merged commit 843b9de into ryanto:main Apr 4, 2022
@ryanto
Copy link
Owner

ryanto commented Apr 4, 2022

Released as 0.1.4. Thanks again for getting this added!

@danielmichaels danielmichaels deleted the render-support branch April 4, 2022 23:00
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.

2 participants