Przeglądaj źródła

clean up vars for buildjs path and change default to cdn.sharelatex.dev:3000

Henry Oswald 10 lat temu
rodzic
commit
ad60268707

+ 2 - 2
services/web/app/coffee/infrastructure/ExpressLocals.coffee

@@ -78,9 +78,9 @@ module.exports = (app, webRouter, apiRouter)->
 				opts.qs = {}
 
 			if !opts.qs?.fingerprint? and doFingerPrint
-				opts.qs.fingerprint = getFingerprint(p)
+				opts.qs.fingerprint = getFingerprint(path)
 
-			path = Url.resolve(staticFilesBase, p)
+			path = Url.resolve(staticFilesBase, path)
 			qs = querystring.stringify(opts.qs)
 
 			if qs? and qs.length > 0

+ 1 - 1
services/web/config/settings.defaults.coffee

@@ -116,7 +116,7 @@ module.exports = settings =
 
 	# cdn:
 	# 	web:
-	# 		host:"http://www.sharelatex.dev:3000"
+	# 		host:"http://cdn.sharelatex.dev:3000"
 
 	# Where your instance of ShareLaTeX can be found publically. Used in emails
 	# that are sent out, generated links, etc.