Skip to content

Commit a111a04

Browse files
author
Guy Bedford
authored
docs enable fastly:acl rewrite (#1126)
1 parent 0b438bc commit a111a04

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

documentation/rename-docs.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import { readdirSync, renameSync } from 'node:fs';
99

1010
const subsystems = [
11+
'acl',
1112
'backend',
1213
'cache-override',
1314
'cache',

types/acl.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ declare module 'fastly:acl' {
1414
* import { Acl } from 'fastly:acl';
1515
* addEventListener('fetch', async (evt) => {
1616
* const myAcl = Acl.open('myacl');
17-
* const { action, prefix } = await myAcl.lookup(evt.client.address);
18-
* evt.respondWith(new Response(action === 'block' ? 'blocked' : 'allowed'));
17+
* const result = await myAcl.lookup(evt.client.address);
18+
* evt.respondWith(new Response(result?.action === 'BLOCK' ? 'blocked' : 'allowed'));
1919
* });
2020
*
2121
* @param ipAddress Ipv6 or IPv4 IP address string

0 commit comments

Comments
 (0)