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

Removing nextjs config for page routing #34

Merged
merged 3 commits into from
Oct 13, 2023

Conversation

EdwinGuzman
Copy link
Member

Removing pageExtension from nextjs' config. It did not allow the render locally or on Vercel.

@vercel
Copy link

vercel bot commented Oct 12, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
research-catalog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 12, 2023 8:44pm

@EdwinGuzman
Copy link
Member Author

@charmingduchess sorry, but it turns out that you do have to move page-specific unit test files outside of the pages directory. Nextjs picks it up and thinks they're pages and, because they're not, the app doesn't render.

I moved them to the __tests__ directory.

This is not true for unit test files that are for components. Those test files can still be located in the same directory as the react component.

@charmingduchess
Copy link
Contributor

Oh darn! I had removed it but wanted to try again. The tests passed, but I neglected to run the actual app... My bad!

@EdwinGuzman
Copy link
Member Author

Not a problem!

@EdwinGuzman EdwinGuzman merged commit 0a5cf47 into main Oct 13, 2023
2 checks passed
@dgcohen dgcohen deleted the NO_REF/nextjs-page-routing branch February 1, 2024 16:18
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.

3 participants