From 9766a4bb9a9c102945c9d6ef41b7a5b67814063e Mon Sep 17 00:00:00 2001
From: Bastien Abadie <abadie@teklia.com>
Date: Wed, 5 Mar 2025 15:37:04 +0000
Subject: [PATCH] Support frontend built with vite

---
 arkindex/templates/index.html | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/arkindex/templates/index.html b/arkindex/templates/index.html
index daedb0d606..40708679ec 100644
--- a/arkindex/templates/index.html
+++ b/arkindex/templates/index.html
@@ -5,7 +5,6 @@
     <meta name=viewport content="width=device-width,initial-scale=1">
     <meta name="version" content="{{ version }}">
     <meta name="frontend_version" content="{{ frontend_version }}">
-    <meta name="assets_url" content="{{ cdn_assets_url }}/{{ frontend_version }}/">
     <meta name="api_base_url" content="/api/v1">
     <meta name="environment" content="{{ arkindex_env }}" />
     {% if mirador_url %}<meta name="mirador_url" content="{{ mirador_url }}">{% endif %}
@@ -16,11 +15,11 @@
     <meta name="banner_style" content="{{ frontend_banner.style.value }}">
     {% endif %}
     <title>Arkindex {{ frontend_version }}</title>
-    <link href="{{ cdn_assets_url }}/{{ frontend_version }}/arkindex-{{ frontend_version }}.css" rel="stylesheet">
+    <link href="{{ cdn_assets_url }}/{{ frontend_version }}/assets/index.css" rel="stylesheet">
   </head>
   <body>
     <div id=app></div>
-    <script type="text/javascript" src="{{ cdn_assets_url }}/{{ frontend_version }}/arkindex-{{ frontend_version }}.js"></script>
-    <script type="text/javascript" src="{{ cdn_assets_url }}/{{ frontend_version }}/arkindex-vendors-{{ frontend_version }}.js"></script>
+    <script type="module" src="{{ cdn_assets_url }}/{{ frontend_version }}/arkindex.js"></script>
+    <script type="module" src="{{ cdn_assets_url }}/{{ frontend_version }}/chunks/vendor.js"></script>
 </body>
 </html>
-- 
GitLab