Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Add .env Support #61

Merged
merged 2 commits into from
Dec 10, 2024
Merged

Add .env Support #61

merged 2 commits into from
Dec 10, 2024

Conversation

jzgom067
Copy link
Collaborator

What?

This adds support for .env files in the frontend, which defines the host address for the API.
The file should be in the following format:

VITE_API_HOST="http://[host]"

Why?

This is to allow for proper local testing that doesn't depend on the hard-coded server URL.

How?

Vite has built-in functionality for .env files.

Testing?

I tested with the server URL and locally, and they both worked.

Just create the .env file with VITE_API_HOST in it.
@jzgom067 jzgom067 requested a review from mirmirmirr December 10, 2024 20:29
Copy link
Collaborator

@mirmirmirr mirmirmirr left a comment

Choose a reason for hiding this comment

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

🫡

@jzgom067 jzgom067 merged commit 110547d into main Dec 10, 2024
2 checks passed
@jzgom067 jzgom067 deleted the env-support branch December 10, 2024 21:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants