Skip to content

Commit

Permalink
[ENHANCEMENT] Configure local env with all network interfaces (#5225)
Browse files Browse the repository at this point in the history
# Description
<!-- Please include a summary of the changes and the related issue.
Please also include relevant motivation and context. List any
dependencies that are required for this change. -->

When running the frontend server locally connecting to a local argilla
server, the proxy cannot connect and the environment does not work. By
changing the default server base URL to `http://0.0.0.0:6900` the
problem is resolved. This change forces using all available network
interfaces to connect.

**Type of change**
<!-- Please delete options that are not relevant. Remember to title the
PR according to the type of change -->

- Bug fix (non-breaking change which fixes an issue)
- New feature (non-breaking change which adds functionality)
- Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- Refactor (change restructuring the codebase without changing
functionality)
- Improvement (change adding some improvement to an existing
functionality)
- Documentation update

**How Has This Been Tested**
<!-- Please add some reference about how your feature has been tested.
-->

**Checklist**
<!-- Please go over the list and make sure you've taken everything into
account -->

- I added relevant documentation
- I followed the style guidelines of this project
- I did a self-review of my code
- I made corresponding changes to the documentation
- I confirm My changes generate no new warnings
- I have added tests that prove my fix is effective or that my feature
works
- I have added relevant notes to the CHANGELOG.md file (See
https://keepachangelog.com/)
  • Loading branch information
frascuchon authored Jul 15, 2024
1 parent 1ed7393 commit 3d40554
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion argilla-frontend/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { NuxtConfig } from "@nuxt/types";
import Mode from "frontmatter-markdown-loader/mode";
import pkg from "./package.json";

const LOCAL_ENVIRONMENT = "http://localhost:6900";
const LOCAL_ENVIRONMENT = "http://0.0.0.0:6900";
const BASE_URL = process.env.API_BASE_URL ?? LOCAL_ENVIRONMENT;
const DIST_FOLDER = process.env.DIST_FOLDER || "dist";

Expand Down

0 comments on commit 3d40554

Please sign in to comment.