UNPKG

@metamask/kernel-store

Version:
1 lines 562 B
{"version":3,"file":"env.mjs","sourceRoot":"","sources":["../../src/sqlite/env.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,qCAAqC;AAErC;;;;GAIG;AACH,MAAM,UAAU,WAAW;IACzB,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,cAAc,IAAI,EAAE,CAAC;AAC/C,CAAC","sourcesContent":["// eslint-disable-next-line spaced-comment\n/// <reference types=\"vite/client\" />\n\n/**\n * Get the DB folder from environment variables.\n *\n * @returns The configured DB folder or an empty string\n */\nexport function getDBFolder(): string {\n return import.meta.env?.VITE_DB_FOLDER ?? '';\n}\n"]}