Skip to content

#292 serve build: return 404 on missing .map requests instead of try to render as HTML - #294

Open
d9k wants to merge 1 commit into
exhibitionist-digital:mainfrom
d9k:292-map-404
Open

#292 serve build: return 404 on missing .map requests instead of try to render as HTML#294
d9k wants to merge 1 commit into
exhibitionist-digital:mainfrom
d9k:292-map-404

Conversation

@d9k

@d9k d9k commented Dec 29, 2023

Copy link
Copy Markdown

@Danielduel Danielduel left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, kinda weird that you are using "regex" instead of /regex/ - I haven't seen regexes as strings like this before.
Also - you could move this regex to serveStatic's top closure so it's created once and preserved in memory instead of recreating regex.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants