mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Add support for offline lottie
In air gapped, lotties won't load because the WASM player is fetched from CDN. This PR bundles the player so we can fetch it directly from file system
This commit is contained in:
@@ -2,6 +2,8 @@ import { StrictMode } from "react";
|
||||
import ReactDOM from "react-dom/client";
|
||||
import { createRouter, RouterProvider } from "@tanstack/react-router";
|
||||
import NProgress from "nprogress";
|
||||
import { setWasmUrl } from '@lottiefiles/dotlottie-react';
|
||||
import lottieWasmUrl from '@lottiefiles/dotlottie-web/dist/dotlottie-player.wasm?url';
|
||||
|
||||
import { ContentLoader } from "./components/v2";
|
||||
import { queryClient } from "./hooks/api/reactQuery";
|
||||
@@ -22,6 +24,9 @@ import "./translation";
|
||||
// have a look at the Quick start guide
|
||||
// for passing in lng and translations on init/
|
||||
|
||||
// Configure Lottie player to use local WASM file
|
||||
setWasmUrl(lottieWasmUrl);
|
||||
|
||||
// Create a new router instance
|
||||
NProgress.configure({ showSpinner: false });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user