Skip to content

Commit 920beb0

Browse files
committed
try a ?.
1 parent 5677bda commit 920beb0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/tutorial/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"lint": "pnpm -w exec lint",
1616
"lint:types": "glint",
1717
"lint:fix": "pnpm -w exec lint fix",
18-
"cf": "cd dist && npx wrangler pages dev ./",
18+
"cf": "cd dist && npx wrangler pages dev --port 42000 ./",
1919
"start": "concurrently 'ember serve' 'pnpm _syncPnpm --watch' --names 'serve,sync deps'",
2020
"test:ember": "ember test --test-port 0",
2121
"_syncPnpm": "pnpm sync-dependencies-meta-injected",

apps/tutorial/public/functions/_middleware.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ async function errorIfNotFound(context) {
4545
* in our URLs, we *only* want to return those files.
4646
* Not the index HTML
4747
*/
48-
if (status <= 400 && headers.get('content-type').includes('text/html')) {
48+
if (status <= 400 && headers.get('content-type')?.includes('text/html')) {
4949
/**
5050
* We return a 404
5151
*/

0 commit comments

Comments
 (0)