You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both next.config.ts and vercel.json have ability to rewrite incoming requests matching certain parameters. If say these are static and I don't need to perform much checks, just writing /api/users to /api/temp/users, where should I configure this ?
Which is better in terms of development and production.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Summary
Both next.config.ts and vercel.json have ability to rewrite incoming requests matching certain parameters. If say these are static and I don't need to perform much checks, just writing
/api/users
to/api/temp/users
, where should I configure this ?Which is better in terms of development and production.
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions