Skip to content

Commit

Permalink
Fix http server, definitely not a hack
Browse files Browse the repository at this point in the history
  • Loading branch information
Jumbub committed Mar 28, 2022
1 parent b2b4348 commit 8d4d13b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
"scripts": {
"build": "tsc",
"build:watch": "tsc --watch",
"serve": "http-server -c-1"
"serve": "npm run serve:patch && http-server -c-1",
"serve:patch": "grep require-corp ./node_modules/http-server/bin/http-server || sed -i 's/createServer(options)/createServer({...options, headers: {\"Cross-Origin-Embedder-Policy\": \"require-corp\", \"Cross-Origin-Opener-Policy\": \"same-origin\"}})/' ./node_modules/http-server/bin/http-server"
},
"author": "github.com/jumbub",
"license": "ISC",
"dependencies": {
"http-server": "^14.1.0",
"http-server": "14.1.0",
"typescript": "^4.6.2"
}
}

0 comments on commit 8d4d13b

Please sign in to comment.