Re:Write PHP Code Within Next.js Components
by bottlepalm on Thursday November 02, 2023 @09:20PM
(#38123085)
You can use a v1 folder for your v1 functions. The server identifies functions by path and name of the action. Similar to a url. So like a url if you want a new one, you'd create actionNew, and if you move the location of the function it would break old versions without a redirect.
[ Parent
| on HN ]
Re:Write PHP Code Within Next.js Components
by spion on Friday November 03, 2023 @07:14AM
(#38127050)
Is this documented anywhere?
Re:Write PHP Code Within Next.js Components
by bottlepalm on Friday November 03, 2023 @02:08PM
(#38132615)
Not sure. I just read the code.
https://github.com/vercel/next.js/blob/ffdfd33251165d8b2f092...