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

Form for testing #14

Merged
merged 39 commits into from
Sep 29, 2024
Merged

Form for testing #14

merged 39 commits into from
Sep 29, 2024

Conversation

joywin2003
Copy link
Contributor

No description provided.

@joywin2003 joywin2003 added the enhancement New feature or request label Sep 26, 2024
src/app/layout.tsx Outdated Show resolved Hide resolved
src/components/payment.tsx Outdated Show resolved Hide resolved
- moved constants to constant/index
- shifted layout wrappers to provider
- used constants
@joywin2003
Copy link
Contributor Author

Added the requested changes

@joywin2003
Copy link
Contributor Author

Error: to fetch users: q [Error]: Dynamic server usage: Route /api/users couldn't be rendered statically because it used `request.url`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error at W (/home/runner/work/website/website/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:6:21106) Generating static pages (6/13) at Object.get (/home/runner/work/website/website/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:6:28459) at p (/home/runner/work/website/website/.next/server/app/api/users/route.js:1:649) at /home/runner/work/website/website/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:6:36264 at /home/runner/work/website/website/node_modules/next/dist/server/lib/trace/tracer.js:140:36 at NoopContextManager.with (/home/runner/work/website/website/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:7062) at ContextAPI.with (/home/runner/work/website/website/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:518) at NoopTracer.startActiveSpan (/home/runner/work/website/website/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:18093) at ProxyTracer.startActiveSpan (/home/runner/work/website/website/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:18854) at /home/runner/work/website/website/node_modules/next/dist/server/lib/trace/tracer.js:122:103 { description: "Route /api/users couldn't be rendered statically because it used `request.url`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error", digest: 'DYNAMIC_SERVER_USAGE' }

Getting this error from your admin check in middlware.ts

@Vyshnav001
Copy link
Collaborator

Error: to fetch users: q [Error]: Dynamic server usage: Ro

which middleware is that ?
i don't remember creating a middleware

Copy link
Collaborator

@Vyshnav001 Vyshnav001 left a comment

Choose a reason for hiding this comment

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

Rest everything looks good for me

@joywin2003
Copy link
Contributor Author

then its better to merge it, furthure changes will be done in another PR

@joywin2003 joywin2003 merged commit a80977d into main Sep 29, 2024
2 checks passed
@joywin2003 joywin2003 deleted the form branch October 5, 2024 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants