mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-19 14:14:17 +00:00
fix external path and remove unneeded stuff
This commit is contained in:
@@ -8,10 +8,8 @@ export const config = {
|
|||||||
directory: 'db',
|
directory: 'db',
|
||||||
filename: 'db.json',
|
filename: 'db.json',
|
||||||
},
|
},
|
||||||
demo: {
|
external: 'external',
|
||||||
directory: 'demo',
|
demo: 'demo',
|
||||||
filename: ['app.js', 'index.html', 'styles.css'],
|
|
||||||
},
|
|
||||||
projects: 'projects',
|
projects: 'projects',
|
||||||
sheets: {
|
sheets: {
|
||||||
directory: 'sheets',
|
directory: 'sheets',
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ export const srcDir = {
|
|||||||
/** Path to the react app */
|
/** Path to the react app */
|
||||||
clientDir: isProduction ? join(srcDirectory, 'client/') : join(srcDirectory, '../../client/build/'),
|
clientDir: isProduction ? join(srcDirectory, 'client/') : join(srcDirectory, '../../client/build/'),
|
||||||
/** Path to the demo app */
|
/** Path to the demo app */
|
||||||
demoDir: join(srcDirectory, 'external', config.demo.directory),
|
demoDir: join(srcDirectory, 'external', config.demo),
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
export const srcFiles = {
|
export const srcFiles = {
|
||||||
@@ -109,12 +109,15 @@ export const publicDir = {
|
|||||||
/** path to uploads folder */
|
/** path to uploads folder */
|
||||||
uploadsDir: join(resolvePublicDirectory, config.uploads),
|
uploadsDir: join(resolvePublicDirectory, config.uploads),
|
||||||
/** path to external folder */
|
/** path to external folder */
|
||||||
externalDir: externalsStartDirectory,
|
externalDir: join(
|
||||||
|
externalsStartDirectory,
|
||||||
|
isProduction ? config.external : '', // move to external folder in production
|
||||||
|
),
|
||||||
/** path to demo project folder */
|
/** path to demo project folder */
|
||||||
demoDir: join(
|
demoDir: join(
|
||||||
externalsStartDirectory,
|
externalsStartDirectory,
|
||||||
isProduction ? '/external/' : '', // move to external folder in production
|
isProduction ? '/external/' : '', // move to external folder in production
|
||||||
config.demo.directory,
|
config.demo,
|
||||||
),
|
),
|
||||||
/** path to user folder */
|
/** path to user folder */
|
||||||
userDir: join(resolvePublicDirectory, config.user),
|
userDir: join(resolvePublicDirectory, config.user),
|
||||||
|
|||||||
Reference in New Issue
Block a user