diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-06-18 22:52:12 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-06-18 22:52:12 -0300 |
commit | 874203c03c627ca1d501ab102d0a452e7b827c56 (patch) | |
tree | 7dcaca33668b7f692650256f28499426ddf3f1de /src/web-routes.js | |
parent | 75c74b6425afeb9a6fe263a564f0f05434edce5a (diff) |
Diffstat (limited to 'src/web-routes.js')
-rw-r--r-- | src/web-routes.js | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/src/web-routes.js b/src/web-routes.js index 7e08d06f..762b26c3 100644 --- a/src/web-routes.js +++ b/src/web-routes.js @@ -18,21 +18,25 @@ export const stationaryCodeRoutes = [ { from: path.join(codeSrcPath, 'static', 'css'), to: ['staticCSS.root'], + statically: 'copy', }, { from: path.join(codeSrcPath, 'static', 'js'), to: ['staticJS.root'], + statically: 'copy', }, { from: path.join(codeSrcPath, 'static', 'misc'), to: ['staticMisc.root'], + statically: 'copy', }, { from: path.join(codeSrcPath, 'util'), to: ['staticSharedUtil.root'], + statically: 'copy', }, ]; @@ -50,6 +54,8 @@ function quickNodeDependency({ : root), to: ['staticLib.path', name], + + statically: 'copy', }, ]; } @@ -86,8 +92,17 @@ export async function identifyDynamicWebRoutes({ }) { const routeFunctions = [ () => Promise.resolve([ - {from: path.resolve(mediaPath), to: ['media.root']}, - {from: path.resolve(mediaCachePath), to: ['thumb.root']}, + { + from: path.resolve(mediaPath), + to: ['media.root'], + statically: 'symlink', + }, + + { + from: path.resolve(mediaCachePath), + to: ['thumb.root'], + statically: 'symlink', + }, ]), () => { @@ -98,7 +113,12 @@ export async function identifyDynamicWebRoutes({ return ( readdir(from).then( - () => [{from, to: ['searchData.root']}], + () => [ + { + from, + to: ['searchData.root'], + statically: 'copy', + }], () => [])); }, ]; |