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

feat: allowedHosts configuration in environment variables #1488

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Argragas
Copy link

Implementation of allowedHosts

This pull request introduces the implementation of the VITE_ALLOWED_HOSTS environment variable in the Vite configuration.

Changes
Implementation of VITE_ALLOWED_HOSTS in vite.config.ts:
Added the allowedHosts constant to define allowed hosts based on the VITE_ALLOWED_HOSTS environment variable.
If VITE_ALLOWED_HOSTS is not set, allowedHosts defaults to an empty array.
Added comments to explain the purpose and usage of the allowedHosts constant.

@Argragas Argragas changed the title Add allowedHosts configuration in environment variables add : allowedHosts configuration in environment variables Mar 10, 2025
@Argragas Argragas changed the title add : allowedHosts configuration in environment variables add: allowedHosts configuration in environment variables Mar 10, 2025
@Argragas Argragas changed the title add: allowedHosts configuration in environment variables feat: allowedHosts configuration in environment variables Mar 10, 2025
@thecodacus
Copy link
Collaborator

what is the use of this variable? i am not seeing its being used in anywhere

@Argragas
Copy link
Author

what is the use of this variable? i am not seeing its being used in anywhere

When deploying the provided Docker container, hosts are not valid unless they are authorized in the vite.config file.

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