This is an automated email from the ASF dual-hosted git repository.

pierrejeambrun pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 1552f3e8164 AIP-38 Fix UI following vite upgrade (#45934)
1552f3e8164 is described below

commit 1552f3e8164eb22eb2f4e107374e6f426a60a60a
Author: Pierre Jeambrun <pierrejb...@gmail.com>
AuthorDate: Wed Jan 22 16:36:58 2025 +0100

    AIP-38 Fix UI following vite upgrade (#45934)
---
 airflow/ui/vite.config.ts | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/airflow/ui/vite.config.ts b/airflow/ui/vite.config.ts
index 767e72296f2..947997eeb05 100644
--- a/airflow/ui/vite.config.ts
+++ b/airflow/ui/vite.config.ts
@@ -34,6 +34,9 @@ export default defineConfig({
     cssInjectedByJsPlugin(),
   ],
   resolve: { alias: { openapi: "/openapi-gen", src: "/src" } },
+  server: {
+    cors: true, // Only used by the dev server.
+  },
   test: {
     coverage: {
       include: ["src/**/*.ts", "src/**/*.tsx"],

Reply via email to