select path for DB depending on local or dev environment
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import { dev } from '$app/environment';
|
||||
|
||||
export const ROUTE_NAMES = {
|
||||
ROOT: '/',
|
||||
|
||||
@@ -37,5 +39,4 @@ export const API_ROUTES = {
|
||||
USER: (userId: string) => `/api/users/${userId}`
|
||||
};
|
||||
|
||||
// local database path: './src/lib/data/tatort.db'
|
||||
export const DB_FULLPATH = '/daten/tatort.db'
|
||||
export const DB_FULLPATH = dev ? './src/lib/data/tatort.db' : '/daten/tatort.db'
|
||||
Reference in New Issue
Block a user