Pārlūkot izejas kodu

We need some more config stuff for the frontend

Pitu 6 gadi atpakaļ
vecāks
revīzija
77dd0c70f7
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. 3 1
      src/start.js

+ 3 - 1
src/start.js

@@ -57,10 +57,12 @@ function writeFrontendConfig() {
 	const template = oneliner`
 		module.exports = {
 			version: '${process.env.npm_package_version}',
+			URL: '${config.filesServeLocation}',
 			baseURL: '${config.backendLocation}',
 			serviceName: '${config.serviceName}',
 			maxFileSize: '${config.uploads.uploadMaxSize}',
-			chunkSize: '${config.uploads.chunkSize}'
+			chunkSize: '${config.uploads.chunkSize}',
+			maxLinksPerAlbum: '${config.albums.maxLinksPerAlbum}'
 		}`;
 	jetpack.write(path.join(__dirname, 'site', 'config.js'), template);
 	log.success('Frontend config file generated successfully');