We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb1bdd1 commit f638af8Copy full SHA for f638af8
.github/workflows/ci.yml
@@ -6,6 +6,9 @@ on:
6
pull_request:
7
branches: [main]
8
9
+permissions:
10
+ contents: read
11
+
12
jobs:
13
test:
14
runs-on: ubuntu-latest
test/setup/global-setup.ts
@@ -258,7 +258,7 @@ export default async function globalSetup() {
258
const staticPort = await findAvailablePort(8000)
259
260
const staticServer = createServer((req, res) => {
261
- const pathname = parse(req.url || '').pathname || '/'
+ const pathname = new URL(req.url || '').pathname || '/'
262
let filePath = join(inspectorDistDir, pathname === '/' ? 'index.html' : pathname)
263
264
// Always disable keep-alive
0 commit comments