Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessing the runner / may lead to exception #94

Closed
ArnaudBuchholz opened this issue Jun 25, 2024 · 2 comments
Closed

Accessing the runner / may lead to exception #94

ArnaudBuchholz opened this issue Jun 25, 2024 · 2 comments

Comments

@ArnaudBuchholz
Copy link
Owner

ArnaudBuchholz commented Jun 25, 2024

Reproduced, this is because the following mapping matches / :

{
  // Project mapping
  match: /^\/(.*)/,
  cwd: job.webapp,
  file: '$1',
  static: !job.watch && !job.debugDevMode
},

But after interpolation, $1 is empty and it fails the file handler :

let filePath = /([^?#]+)/.exec(redirect)[1] // filter URL parameters & hash

because it does not match, it might be interesting to replace + with *

@ArnaudBuchholz
Copy link
Owner Author

@ArnaudBuchholz
Copy link
Owner Author

Fixed in [email protected]

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

No branches or pull requests

1 participant