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

feat: add indexPrefix option #186

Closed

Conversation

DavidTanner
Copy link
Contributor

Checklist

Adds a feature flag for #176, #164, #162, and #180

@DavidTanner
Copy link
Contributor Author

@mcollina could you please review this?

Copy link
Member

@mcollina mcollina left a 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;
Copy link
Member

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.

Copy link
Contributor Author

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?

Copy link
Contributor

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)

Copy link
Contributor

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 😉

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

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 😊

@Fdawgs Fdawgs requested a review from Copilot November 20, 2024 10:59
Copy link

@Copilot Copilot AI left a 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.

test/route.test.js Show resolved Hide resolved
@balanced-hvu
Copy link

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!

@mcollina mcollina closed this Dec 3, 2024
@DavidTanner DavidTanner deleted the bugfix/moreIndexIssues branch December 3, 2024 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants