mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 00:21:20 -05:00
Fix rewrite priority
The order of the rewrite conditions needs to be internally consistent so we can control specificity with routes.json
This commit is contained in:
parent
c6abc2ae7b
commit
32611c9cba
1 changed files with 2 additions and 2 deletions
|
@ -148,7 +148,7 @@ async.waterfall([
|
|||
name: getConditionNameForView(route.view),
|
||||
statement: 'req.url ~ "' + route.pattern + '"',
|
||||
type: 'REQUEST',
|
||||
priority: 10
|
||||
priority: id
|
||||
};
|
||||
var header = {
|
||||
name: getHeaderNameForView(route.view),
|
||||
|
@ -158,7 +158,7 @@ async.waterfall([
|
|||
dst: 'url',
|
||||
src: '"/' + route.view + '.html"',
|
||||
request_condition: getConditionNameForView(route.view),
|
||||
priority: id
|
||||
priority: 10
|
||||
};
|
||||
async.series([
|
||||
async.apply(fastly.setCondition.bind(fastly), version.number, condition),
|
||||
|
|
Loading…
Reference in a new issue