select storage path depending on local testing or prod
All checks were successful
InnoHub Processor/tatort/pipeline/head This commit looks good
All checks were successful
InnoHub Processor/tatort/pipeline/head This commit looks good
This commit is contained in:
@@ -1,5 +1,3 @@
|
|||||||
import { dev } from '$app/environment';
|
|
||||||
|
|
||||||
export const ROUTE_NAMES = {
|
export const ROUTE_NAMES = {
|
||||||
ROOT: '/',
|
ROOT: '/',
|
||||||
|
|
||||||
@@ -39,4 +37,5 @@ export const API_ROUTES = {
|
|||||||
USER: (userId: string) => `/api/users/${userId}`
|
USER: (userId: string) => `/api/users/${userId}`
|
||||||
};
|
};
|
||||||
|
|
||||||
export const DB_FULLPATH = dev ? './src/lib/data/tatort.db' : '/daten/tatort.db';
|
const isProd = process.env.NODE_ENV == 'production';
|
||||||
|
export const DB_FULLPATH = !isProd ? './src/lib/data/tatort.db' : '/daten/tatort.db';
|
||||||
Reference in New Issue
Block a user