fix(core): add proxy so that origin is the same as request url for workers (#10053)

This commit is contained in:
brian-mulier-p
2025-07-11 16:44:03 +02:00
committed by GitHub
parent 3a10a52320
commit c68808582b
3 changed files with 9 additions and 6 deletions

View File

@@ -27,11 +27,6 @@ In the meantime, you can move onto the next step...
- Create a `.env.development.local` file in the `ui` folder and paste the following:
```bash
# This lets the frontend know what the backend URL is but you are free to change this to your actual server URL e.g. hosted version of Kestra.
VITE_APP_API_URL=http://localhost:8080
```
- Navigate into the `ui` folder and run `npm install` to install the dependencies for the frontend project.
- Now go to the `cli/src/main/resources` folder and create a `application-override.yml` file.

View File

@@ -80,7 +80,6 @@ python3 -m pip install virtualenv
The frontend is made with [Vue.js](https://vuejs.org/) and located on the `/ui` folder.
- `npm install`
- create a file `ui/.env.development.local` with content `VITE_APP_API_URL=http://localhost:8080` (or your actual server url)
- `npm run dev` will start the development server with hot reload.
- The server start by default on port 5173 and is reachable on `http://localhost:5173`
- You can run `npm run build` in order to build the front-end that will be delivered from the backend (without running the `npm run dev`) above.

View File

@@ -38,6 +38,15 @@ export default defineConfig({
}
}
},
server: {
proxy: {
"^/api": {
target: "http://kestra:8080", // Make sure to change your /etc/hosts file, to contain this line: 127.0.0.1 kestra
ws: true,
changeOrigin: true
}
}
},
resolve: {
alias: {
"override": path.resolve(__dirname, "src/override/"),