docs: update api step 1 path in self hosting documentation #3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In Step 1 of the API section (https://cal.com/docs/self-hosting/installation#api), the instructions currently tell users to create a .env file from a path that doesn’t exist. Since the documentation is referring to API version v2, I’ve corrected the path so that the .env file is copied and created from the correct directory.
Mandatory Tasks (DO NOT REMOVE)
How should this be tested?
Are there environment variables that should be set? No
What are the minimal test data to have? Not needed for this pr
What is expected (happy path) to have (input and output)? If a user follows the updated instructions they should see a .env in the apps/api/v2 path
Any other important info that could help to test that PR? No
Based on: docs: update api step 1 path in self hosting documentation calcom/cal.com#23393
Summary by cubic
Fixes the .env copy path in the self-hosting API v2 setup. The command now uses apps/api/v2/.env.example -> apps/api/v2/.env, preventing errors from a non-existent path and ensuring the env file is created in the right directory.