Update project name

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2024-07-29 10:03:58 +02:00
parent e3e787fc53
commit a9e958b03b
3 changed files with 4 additions and 4 deletions

View File

@ -65,7 +65,7 @@ type State = ReturnType<typeof ReducerRecord>;
const buildKey = (parts: string[]) => parts.join(':');
// For subdirectory support
const NAMESPACE = trim(BuildConfig.FE_SUBDIRECTORY, '/') ? `soapbox@${BuildConfig.FE_SUBDIRECTORY}` : 'soapbox';
const NAMESPACE = trim(BuildConfig.FE_SUBDIRECTORY, '/') ? `soapbox@${BuildConfig.FE_SUBDIRECTORY}` : 'pl-fe';
const STORAGE_KEY = buildKey([NAMESPACE, 'auth']);
const SESSION_KEY = buildKey([NAMESPACE, 'auth', 'me']);

View File

@ -42,7 +42,7 @@ const startSentry = async (dsn: string): Promise<void> => {
tracesSampleRate: .1,
});
Sentry.setContext('soapbox', sourceCode);
Sentry.setContext('pl-fe', sourceCode);
};
/** Associate the account with Sentry events. */

View File

@ -7,8 +7,8 @@ interface IKVStore extends LocalForage {
// localForage
// https://localforage.github.io/localForage/#settings-api-config
const KVStore = localforage.createInstance({
name: 'soapbox',
description: 'Soapbox offline data store',
name: 'pl-fe',
description: 'pl-fe offline data store',
driver: localforage.INDEXEDDB,
storeName: 'keyvaluepairs',
}) as IKVStore;