Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on May 10, 2021. It is now read-only.

strip file extension when checking if route is dynamic in setupRedirects #156

Merged
merged 1 commit into from
Jan 22, 2021

Conversation

lindsaylevine
Copy link
Contributor

Fixes #153

as our lovely finn identified yesterday, the isDynamicRoute check we import from serverless-next does not return true for routes ending in .json so now we strip the file extensions from the routes before passing them to that check!

thanks to @amuttsch for the detailed issue! :D

@lindsaylevine lindsaylevine added the type: bug code to address defects in shipped code label Jan 21, 2021
throw new Error("No static assets found in .next dist (aka no /.next/static). Please check your project configuration. Your next.config.js must be one of `serverless` or `experimental-serverless-trace`. Your build command should include `next build`.");
throw new Error(
"No static assets found in .next dist (aka no /.next/static). Please check your project configuration. Your next.config.js must be one of `serverless` or `experimental-serverless-trace`. Your build command should include `next build`."
);
Copy link
Contributor Author

@lindsaylevine lindsaylevine Jan 21, 2021

Choose a reason for hiding this comment

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

prettier fix leftover from a ui-committed change

Copy link
Contributor

@FinnWoelm FinnWoelm left a comment

Choose a reason for hiding this comment

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

This looks great! 👍 Glad you were able to fix it so fast! 😊

🚀

@lindsaylevine lindsaylevine merged commit 7ad6d32 into main Jan 22, 2021
@lindsaylevine lindsaylevine deleted the ll/incorrect-redirects-sorting branch January 22, 2021 00:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug code to address defects in shipped code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

_redirects sorted wrong when using catch all route and dynamic routes
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.