Skip to content

Commit

Permalink
Fix robots.txt route (#846)
Browse files Browse the repository at this point in the history
  • Loading branch information
harryzcy authored Jan 24, 2024
1 parent b71f130 commit 9ef3980
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ build-docker:
.PHONY: build-cloudflare
build-cloudflare: build-web
@cp -r web/dist cloudflare/
@cp -r cloudflare/public/* cloudflare/dist
@echo "export const BUILD_VERSION = \"$(BUILD_VERSION)\"" > cloudflare/src/buildInfo.ts
@echo "export const BUILD_COMMIT = \"$(BUILD_COMMIT)\"" >> cloudflare/src/buildInfo.ts
@echo "export const BUILD_DATE = \"$(BUILD_DATE)\"" >> cloudflare/src/buildInfo.ts
Expand Down
2 changes: 1 addition & 1 deletion cloudflare/functions/_middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ enum AuthState {
Authenticated
}

const allowedPaths = ['/ping', '/info']
const allowedPaths = ['/info', '/ping', '/robots.txt']

export const onRequest: PagesFunction<Env> = async (context) => {
const { pathname } = new URL(context.request.url)
Expand Down
File renamed without changes.

0 comments on commit 9ef3980

Please sign in to comment.