Fix statically replaced HASH_ROUTING env variables

Also moves the HASH_ROUTING env variable from being modified inside the
hashRouter.spec.ts into the webserver config in the
playwright.config.ipfs.ts

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
Sebastian Martinez
2023-04-03 11:50:24 +02:00
committed by Rūdolfs Ošiņš
parent 6a03ccef2d
commit 4c3bd7ee04
10 changed files with 45 additions and 33 deletions
+14
View File
@@ -0,0 +1,14 @@
/* eslint-disable @typescript-eslint/naming-convention */
// Defined by vite or by custom passed env variables
// Custom entries will be defined as globals during dev and statically replaced during build.
interface ImportMeta extends Readonly<Record<string, unknown>> {
env: {
MODE: string;
BASE_URL: string;
PROD: boolean;
DEV: boolean;
SSR: boolean;
VITE_HASH_ROUTING: boolean;
};
}