-
Notifications
You must be signed in to change notification settings - Fork 42
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
feat: add indexPrefix
option
#186
Conversation
@mcollina could you please review this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work!
/** | ||
* Add an index prefix. This is for when the Fastify server is behind path based routing. ex. NGINX | ||
*/ | ||
indexPrefix?: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a test for this type? We use tsd.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure what you mean. There is a test in test/route.test.js, Is there something else you are looking for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @DavidTanner! 👋🏼
You can see an example here. Basically, by running the tsd
tool, you can run tests for the TS types. You can then check locally by running npm run typescript
, (which will run tsd
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Happy to push the TS test update if this can help to unlock the release of this PR 😉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dancastillo / @mcollina I think we can close this PR and merge the one above 😊
Copilot
AI
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 suggestion.
Hi everyone, Have we reached a consensus and a release date? I'm also waiting and want to remove a similar hack (inspired by this PR) that we've implemented to address the relative asset paths problem. Many thanks! |
Checklist
npm run test
andnpm run benchmark
and the Code of conduct
Adds a feature flag for #176, #164, #162, and #180