Browse Source

We need some more config stuff for the frontend

Pitu 6 years ago
parent
commit
77dd0c70f7
1 changed files with 3 additions and 1 deletions
  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');