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

Deprecate pages #154

Merged
merged 2 commits into from
Apr 12, 2024
Merged

Deprecate pages #154

merged 2 commits into from
Apr 12, 2024

Conversation

nickbar01234
Copy link
Collaborator

@nickbar01234 nickbar01234 commented Apr 12, 2024

Description

Deprecate pages/ directory as we have a working app/ directory implementation.

Methodology

  • All UI pages are safe to delete, because none of all implementation refers to them.
  • For API routes, search for any occurrence of it in the application. If none exist, then it's safe to delete.
  • Finally, npm run build should return with non-zero status.

Possible Downsides

There will be a big diff when merged.

Additional Documentation

We will be deprecating components/ next.

Copy link

vercel bot commented Apr 12, 2024

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

Name Status Preview Updated (UTC)
the-legacy-project2 ✅ Ready (Inspect) Visit Preview Apr 12, 2024 3:18am

@@ -1,6 +1,5 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
/// <reference types="next/navigation-types/compat/navigation" />
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This changes is generated on npm run build, because useRouter does not have to support both pages/ and app/

Co-authored-by: wkim10 <[email protected]>
Co-authored-by: johnny-t06 <[email protected]>
Copy link
Collaborator

@johnny-t06 johnny-t06 left a comment

Choose a reason for hiding this comment

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

LGTM!

@nickbar01234 nickbar01234 merged commit 96449f3 into main Apr 12, 2024
4 checks passed
@nickbar01234 nickbar01234 deleted the nickbar01234/deprecate-pages branch April 12, 2024 05:02
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.

2 participants